Class IdentityAssertionException

  • All Implemented Interfaces:
    Serializable

    public final class IdentityAssertionException
    extends Exception
    An exception specific to issues within the assertion package.
    See Also:
    Serialized Form
    • Constructor Detail

      • IdentityAssertionException

        public IdentityAssertionException​(String message)
        Create a new instance with a specific message.
        Parameters:
        message - The message related to the generated exception.
      • IdentityAssertionException

        public IdentityAssertionException​(String message,
                                          List<Violation> violations)
        Create a new instance with a specific message and violations.
        Parameters:
        message - The message related to the generated exception.
        violations - The violations related to the generated exception.
      • IdentityAssertionException

        public IdentityAssertionException​(String message,
                                          Exception cause)
        Create a new instance with a specific message and exception cause.
        Parameters:
        message - The message related to the generated exception.
        cause - The cause associated with this exception.
    • Method Detail

      • violations

        public Optional<List<Violation>> violations()
        Return any violations associated with this exception, may be empty.
        Returns:
        any violations associated with this exception, may be empty.