Class ParentChildWhatIfException

  • All Implemented Interfaces:
    Serializable

    public class ParentChildWhatIfException
    extends Exception
    A simple exception type used by the Parent Child Service to indicate there was an issue when persisting parent child trees on the WhatIf engine. ParentChildWhatIfException is a checked exception because its generally not the users fault if they called on the whatif engine and they were switched from authorized to not authorized without them knowing of it. A custom exception is currently needed because the WhatIf engine does not throw runtime or checked exceptions. Instead it collects all exceptions and considers it a general "failure" for the submission sent to it. Catching that a failure by the WhatIf engine and letting the user know something happened in the WhatIf framework is helpful to diagnosis what happened and doesn't let the user feel oblivious to what with an alternative generic "Internal_Server" error.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        protected static final long serialVersionUID
        serialVersionUID
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParentChildWhatIfException

        public ParentChildWhatIfException​(String string)