Class ExceptionResult

    • Constructor Detail

      • ExceptionResult

        public ExceptionResult​(Exception thrownException,
                               boolean isConstraintGenerationEnabled)
        Parameters:
        thrownException - Exception to wrap.
        isConstraintGenerationEnabled - flag that indicates whether constraint-generation is enabled. If yes, equals(Object) delivers ternary result, otherwise a binary result.
    • Method Detail

      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
        Parameters:
        o - result to compare.
        Returns:
        if the two results cause the same Exception, it returns true when testing and an ErrorConstraintException when generating constraints. It returns false if the two results are not equal.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object