Class FBXAException

All Implemented Interfaces:
Serializable

public class FBXAException extends XAException
Convenience exception that adds constructor taking message and error code together.
Author:
Roman Rokytskyy
See Also:
  • Constructor Details

    • FBXAException

      public FBXAException()
    • FBXAException

      public FBXAException(String msg)
      Create a new instance of FBXAException with a given message.
      Parameters:
      msg - The string message for this exception
    • FBXAException

      public FBXAException(int errorCode)
      Create a new instance of FBXAException based around a specific error code.
      Parameters:
      errorCode - The error code for this exception
    • FBXAException

      public FBXAException(String msg, int errorCode)
      Create a new instance of FBXAException based around a message and specific error code.
      Parameters:
      msg - The string message for this exception
      errorCode - The error code for this exception
    • FBXAException

      public FBXAException(int errorCode, Exception reason)
      Create a new instance of FBXAException wrapped around an underlying exception.
      Parameters:
      errorCode - The error code for this exception
      reason - The underlying exception
    • FBXAException

      public FBXAException(String msg, int errorCode, Exception reason)
      Create a new instance of FBXAException based around a message and with an underlying exception.
      Parameters:
      msg - The string message for this exception
      errorCode - The error code for this exception
      reason - The underlying exception
  • Method Details

    • getMessage

      public String getMessage()
      Get message of this exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      combined message of this exception and original exception.
    • printStackTrace

      public void printStackTrace()
      Print a stack trace for this exception to STDERR.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream s)
      Print a stack trace for this exception with a given PrintStream.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      s - The PrintStream to which the stack trace will be written
    • printStackTrace

      public void printStackTrace(PrintWriter s)
      Print a stack trace for this exception with a given PrintWriter.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      s - The PrintWriter to which the stack trace will be written