Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-2741

Show a more appropriate message when invalid BigDecimal shown; ideally allow it to be customised using @Digits.message

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-M5
    • Fix Version/s: 2.0.0-M7
    • Component/s: Isis Core
    • Labels:
      None

      Description

      When we have a BigDecimal property with @Digits(10,3) we get a generic message.  This should be more suitable, and ideally could be customised.

      For example:

      @Digits(integer = 10, fraction = 3) // <<<<<<<<<<<< allow the message thrown by this
      @Property()
      @Parameter()
      @Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE })
      @Retention(RetentionPolicy.RUNTIME)
      public @interface Hours { }

        Attachments

        1. screenshot-1.png
          145 kB
          Daniel Keir Haywood

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Daniel Keir Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: