Class ACDPException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConsistencyException, CreationException, CryptoException, DanglingCommentException, DeleteConstraintException, IllegalReferenceException, ImplementationRestrictionException, IndentationException, IOFailureException, MaximumException, MissingEntryException, ShutdownException, UnitBrokenException

public class ACDPException extends RuntimeException
The super class of all other exception types in this package.
Author:
Beat Hörmann
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ACDPException(acdp.internal.Database_ db, String message)
    Constructs a new ACDP exception with a detail message composed from the specified database und the specified message.
    ACDPException(acdp.internal.Database_ db, String message, Throwable cause)
    Constructs a new ACDP exception with a detail message composed from the specified database and message and with the specified cause.
    ACDPException(acdp.internal.Table_ table, String message)
    Constructs a new ACDP exception with a detail message composed from the specified table and the specified message.
    Constructs a new ACDP exception with the specified detail message.
    ACDPException(String message, Throwable cause)
    Constructs a new ACDP exception with the specified detail message and cause.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    compose(String dbName, String tableName, String columnName)
    Composes a text that contains the specified database name, the specified table name and the specified column name.
    static String
    prefix(acdp.internal.Database_ db)
    Returns a text that contains the name of the specified database.
    static String
    prefix(acdp.internal.Database_ db, String tableName)
    Returns a text that contains the name of the specified database and the specified table name.
    static String
    prefix(acdp.internal.Table_ table)
    Returns a text that contains the name of the database and the name of the specified table.
    static String
    prefix(acdp.internal.Table_ table, acdp.internal.Column_<?> column)
    Returns a text that contains the name of the database, the name of the specified table and the name of the specified column.
    static String
    prefix(acdp.internal.Table_ table, String columnName)
    Returns a text that contains the name of the database, the name of the specified table and the specified column name.
    static String
    prefix(String tableName)
    Returns a text that contains the specified table name.
    static String
    prefix(String dbName, String tableName)
    Returns a text that contains the specified database name and the specified table name.

    Methods inherited from class java.lang.Object

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

    • ACDPException

      public ACDPException(String message)
      Constructs a new ACDP exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
      Parameters:
      message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • ACDPException

      public ACDPException(acdp.internal.Database_ db, String message)
      Constructs a new ACDP exception with a detail message composed from the specified database und the specified message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable). (The detail message is saved for later retrieval by the Throwable.getMessage() method.)
      Parameters:
      db - The database.
      message - The message.
    • ACDPException

      public ACDPException(acdp.internal.Table_ table, String message)
      Constructs a new ACDP exception with a detail message composed from the specified table and the specified message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable). (The detail message is saved for later retrieval by the Throwable.getMessage() method.)
      Parameters:
      table - The table.
      message - The message.
    • ACDPException

      public ACDPException(String message, Throwable cause)
      Constructs a new ACDP exception with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • ACDPException

      public ACDPException(acdp.internal.Database_ db, String message, Throwable cause)
      Constructs a new ACDP exception with a detail message composed from the specified database and message and with the specified cause. (The detail message is saved for later retrieval by the Throwable.getMessage() method.)

      Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

      Parameters:
      db - The database.
      message - The message.
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • compose

      public static String compose(String dbName, String tableName, String columnName)
      Composes a text that contains the specified database name, the specified table name and the specified column name.
      Parameters:
      dbName - The database name, may be null.
      tableName - The table name, may be null.
      columnName - The column name, may be null.
      Returns:
      The described text.
    • prefix

      public static String prefix(acdp.internal.Database_ db)
      Returns a text that contains the name of the specified database. The detail message of an exception can be prefixed with this text.
      Parameters:
      db - The database.
      Returns:
      The described text.
    • prefix

      public static String prefix(String tableName)
      Returns a text that contains the specified table name. The detail message of an exception can be prefixed with this text.
      Parameters:
      tableName - The table name.
      Returns:
      The described text.
    • prefix

      public static String prefix(String dbName, String tableName)
      Returns a text that contains the specified database name and the specified table name. The detail message of an exception can be prefixed with this text.
      Parameters:
      dbName - The database name.
      tableName - The table name.
      Returns:
      The described text.
    • prefix

      public static String prefix(acdp.internal.Database_ db, String tableName)
      Returns a text that contains the name of the specified database and the specified table name. The detail message of an exception can be prefixed with this text.
      Parameters:
      db - The database.
      tableName - The table name.
      Returns:
      The described text.
    • prefix

      public static String prefix(acdp.internal.Table_ table)
      Returns a text that contains the name of the database and the name of the specified table. The detail message of an exception can be prefixed with this text.
      Parameters:
      table - The table.
      Returns:
      The described text.
    • prefix

      public static String prefix(acdp.internal.Table_ table, String columnName)
      Returns a text that contains the name of the database, the name of the specified table and the specified column name. The detail message of an exception can be prefixed with this text.
      Parameters:
      table - The table.
      columnName - The name of the column.
      Returns:
      The described text.
    • prefix

      public static String prefix(acdp.internal.Table_ table, acdp.internal.Column_<?> column)
      Returns a text that contains the name of the database, the name of the specified table and the name of the specified column. The detail message of an exception can be prefixed with this text.
      Parameters:
      table - The table.
      column - The column.
      Returns:
      The described text.