Class FrameworkException

java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.galasa.framework.spi.FrameworkException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CertificateStoreException, ConfidentialTextException, ConfigurationPropertyStoreException, CredentialsException, DynamicStatusStoreException, FrameworkResourceUnavailableException, ResourcePoolingServiceException, ResourceUnavailableException, ResultArchiveStoreException

public class FrameworkException extends Exception
An exception which also holds a FrameworkErrorCode to provide more fine-grained detail about the problem being raised/thrown, which is programmatically accessible. ie: Not just the error text, or instance of the exception instance. Error codes can be explicitly set when the exception is created, or will default to FrameworkErrorDetailsBase.UNKNOWN, or to the same error code from the cause (when that cause is also a FrameworkException. This allows one type of FrameworkException to wrap another, and the original cause error code will be propagated to the top-most FrameworkException in the chain.
See Also:
  • Field Details

    • ENABLE_SUPRESSION_FALSE

      public static final boolean ENABLE_SUPRESSION_FALSE
      See Also:
    • WRITEABLE_STACK_TRACE_TRUE

      public static final boolean WRITEABLE_STACK_TRACE_TRUE
      See Also:
  • Constructor Details

    • FrameworkException

      public FrameworkException()
    • FrameworkException

      public FrameworkException(FrameworkErrorDetails errorDetails)
    • FrameworkException

      public FrameworkException(String message)
    • FrameworkException

      public FrameworkException(Throwable cause)
      If the cause is a framework exception, then the error code from the cause is propagated into this exception instance.
    • FrameworkException

      public FrameworkException(FrameworkErrorDetailsBase details, Throwable cause)
    • FrameworkException

      public FrameworkException(String message, Throwable cause)
      If the cause is a framework exception, then the error code from the cause is propagated into this exception instance.
    • FrameworkException

      public FrameworkException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      If the cause is a framework exception, then the error code from the cause is propagated into this exception instance.
    • FrameworkException

      public FrameworkException(FrameworkErrorDetails errorDetails, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
  • Method Details

    • getErrorDetails

      public FrameworkErrorDetails getErrorDetails()
    • getErrorCode

      public int getErrorCode()