Class FlexCheckedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
flexagon.ff.common.core.exceptions.FlexCheckedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FlexNotFoundException, FlexRemotePluginException

public class FlexCheckedException extends Exception
Base class for all FlexDeploy Checked Exceptions.
See Also:
  • Constructor Details

    • FlexCheckedException

      public FlexCheckedException()
      Default constructor. Logs on initialization by default.
    • FlexCheckedException

      public FlexCheckedException(String pMessage, boolean pLogOnInit)
      Creates an exception with the given message
      Parameters:
      pMessage - the exception message
      pLogOnInit - whether to log on initialization
    • FlexCheckedException

      public FlexCheckedException(String pMessage)
      Creates an exception with the given message. Logs on initialization by default.
      Parameters:
      pMessage - the exception message
    • FlexCheckedException

      public FlexCheckedException(String pCode, String pMessage)
      Creates an exception with the given name and code. The code is intended to uniquely identify a place in code where the exception originated, eliminating the need for a Stacktrace to identify the source. A code should identify the vendor and have a unique numeric code. For example, Flexagon/FlexDeploy uses - (e.g. FDML-15001).
      Parameters:
      pCode - - a short code uniquely identifying where an exception is raised.
      pMessage - - an exception message.
    • FlexCheckedException

      public FlexCheckedException(Throwable pThrowable)
      Creates an exception with the given cause
      Parameters:
      pThrowable - the cause of the exception
    • FlexCheckedException

      public FlexCheckedException(String pMessage, Throwable pThrowable)
      Creates an exception with the given message and cause.
      Parameters:
      pMessage - the exception message
      pThrowable - the cause of the exception
    • FlexCheckedException

      public FlexCheckedException(String pCode, String pMessage, Throwable pThrowable)
      Creates an exception with the given code, message, and cause. The code is intended to uniquely identify a place in code where the exception originated, eliminating the need for a Stacktrace to identify the source. A code should identify the vendor and have a unique numeric code. For example, Flexagon/FlexDeploy uses - (e.g. FDML-15001).
      Parameters:
      pCode - the exception code
      pMessage - the exception message
      pThrowable - the cause of the exception
  • Method Details

    • setCode

      public void setCode(String pCode)
      Sets the exception code.
      Parameters:
      pCode - the exception code
    • getCode

      public String getCode()
      Returns the exception code.
      Returns:
      the exception code
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • log

      protected void log()
      Logs exception information on initialization
    • logOnInit

      protected boolean logOnInit()
      Checks whether to log on initialization of this exception
      Returns:
      true if set to log on initialization; false otherwise
    • getPlainMessage

      public String getPlainMessage()
      Returns error message without exception code.
      Returns:
      the exception method without the exception code