Class DomainException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DomainException
    extends java.lang.Exception
    Thrown on exceptions handling the domain.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DomainFailure getFailure()
      Get the failure code.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DomainException

        public DomainException​(DomainFailure failure,
                               java.lang.Throwable cause)
        Create an instance based on a Throwable.
        Parameters:
        failure - the failure code
        cause - the cause of the failure
      • DomainException

        public DomainException​(DomainFailure failure)
        Create an instance.
        Parameters:
        failure - the failure code
    • Method Detail

      • getFailure

        public DomainFailure getFailure()
        Get the failure code.
        Returns:
        the code