Skip to content
Eric edited this page Dec 6, 2016 · 24 revisions

Error / Problem Handling

These are the different major types of problems w/ subtypes:

  • ConstructionProblem (App level construction issue)
    • NonUniqueNames exception (non-unique names)
    • Duplicate point addition
    • Duplicate Loader
    • Security exception - unable to read fields in ConfigGroups
    • Default value is invalid
    • Validation configuration is invalid
  • LoaderProblem (Loader only context)
    • read IO error
    • Parse error where the point is unknown
    • Unfound file (but is indicated to be required)
    • Unrecognized point name
  • PointValueProblem (Point and Loader context)
    • Not valid
    • String conversion error
    • Coersion error (from jndi objects)
  • RequirementsProblem (App level configuration issue)
    • Required Point exception
    • Req group

Design Choices

  • Use statics over Enums. Enums are a natural fit for groups of static final constants, however, Enums do not allow generic types at the individual level. That is, all enums of an Enum type have the same class signature, and thus, cannot be made to return different types from their getValue() method.
Clone this wiki locally