Package acdp.exceptions
Class ACDPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
acdp.exceptions.ACDPException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConsistencyException
,CreationException
,CryptoException
,DanglingCommentException
,DeleteConstraintException
,IllegalReferenceException
,ImplementationRestrictionException
,IndentationException
,IOFailureException
,MaximumException
,MissingEntryException
,ShutdownException
,UnitBrokenException
The super class of all other exception types in this package.
- Author:
- Beat Hörmann
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionACDPException
(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.ACDPException
(String 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 TypeMethodDescriptionstatic String
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
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
Returns a text that contains the name of the database, the name of the specified table and the specified column name.static String
Returns a text that contains the specified table name.static String
Returns a text that contains the specified database name and the specified table name.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ACDPException
Constructs a new ACDP exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
ACDPException
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 toThrowable.initCause(java.lang.Throwable)
. (The detail message is saved for later retrieval by theThrowable.getMessage()
method.)- Parameters:
db
- The database.message
- The message.
-
ACDPException
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 toThrowable.initCause(java.lang.Throwable)
. (The detail message is saved for later retrieval by theThrowable.getMessage()
method.)- Parameters:
table
- The table.message
- The message.
-
ACDPException
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 theThrowable.getMessage()
method).cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
ACDPException
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 theThrowable.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 theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
compose
Composes a text that contains the specified database name, the specified table name and the specified column name.- Parameters:
dbName
- The database name, may benull
.tableName
- The table name, may benull
.columnName
- The column name, may benull
.- Returns:
- The described text.
-
prefix
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
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
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
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
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
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
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.
-