Class BaseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigurationException, ConnectionClosedException, DatabaseException, DetachedItemException, DeviceNotVerifiedException, InvalidDataException, InvalidPasswordException, InvalidRelationException, LoginException, PermissionDeniedException, SignalException

public class BaseException extends RuntimeException
This is the base class for exceptions in BASE. All other exceptions defined by BASE are subclasses of this one.
Version:
2.0
Author:
Nicklas
See Also:
  • Field Details

  • Constructor Details

    • BaseException

      public BaseException()
      Create a new BaseException object.
    • BaseException

      public BaseException(String message)
      Create a new BaseException object with the specified message
      Parameters:
      message - The message to throw with the exception
    • BaseException

      public BaseException(String message, Throwable cause)
      Create a new BaseException object with the specified message
      Parameters:
      message - The message to throw with the exception
      cause - The original exception
    • BaseException

      public BaseException(Throwable cause)
      Create a new BaseException object acting as a wrapper for another exception that caused the error.
      Parameters:
      cause - The original exception
    • BaseException

      public BaseException(SQLException cause)
      Create a new BaseException object where the cause is an SQLException. An SQLException is different from other exception in that is uses SQLException.getNextException() instead of Throwable.getCause() to chain exception. This constructor tries to copy the getNextException:s into the getCause chain.
      Parameters:
      cause - The SQL exception