- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.tentackle.common.TentackleRuntimeException
-
- org.tentackle.session.PersistenceException
-
- org.tentackle.session.NotRemovableException
-
- All Implemented Interfaces:
java.io.Serializable
public class NotRemovableException extends PersistenceException
Runtime exception thrown for not-removables.- Author:
- harald
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.tentackle.session.PersistenceException
END_INFO, START_INFO
-
-
Constructor Summary
Constructors Constructor Description NotRemovableException()Constructs a new database constraint exception without a session and withnullas its detail message.NotRemovableException(java.lang.String message)Constructs a new database constraint exception without a session with the specified detail message.NotRemovableException(java.lang.String message, java.lang.Throwable cause)Constructs a new database constraint exception without a session with the specified detail message and cause.NotRemovableException(org.tentackle.misc.Identifiable object)Constructs a new not-removable exception for a given pc object withnullas its detail message.NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.String message)Constructs a new not-removable exception for a given session with the specified detail message.NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.String message, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified detail message and cause.NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).NotRemovableException(Session session)Constructs a new not-removable exception for a given session withnullas its detail message.NotRemovableException(Session session, java.lang.String message)Constructs a new not-removable exception for a given session with the specified detail message.NotRemovableException(Session session, java.lang.String message, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified detail message and cause.NotRemovableException(Session session, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
-
Method Summary
-
Methods inherited from class org.tentackle.session.PersistenceException
createFromRemoteException, extractPersistenceException, getIdentifiable, getMessage, getSession, setIdentifiable, setSession, updateDbObject
-
-
-
-
Constructor Detail
-
NotRemovableException
public NotRemovableException(Session session)
Constructs a new not-removable exception for a given session withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
session- the session
-
NotRemovableException
public NotRemovableException(Session session, java.lang.String message)
Constructs a new not-removable exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
session- the sessionmessage- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()method.
-
NotRemovableException
public NotRemovableException(Session session, java.lang.String message, java.lang.Throwable cause)
Constructs a new not-removable exception for a given session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this constraint's detail message.- Parameters:
session- the sessionmessage- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
NotRemovableException
public NotRemovableException(Session session, java.lang.Throwable cause)
Constructs a new not-removable exception for a given session with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
session- the sessioncause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
NotRemovableException
public NotRemovableException(org.tentackle.misc.Identifiable object)
Constructs a new not-removable exception for a given pc object withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
object- the persistent object
-
NotRemovableException
public NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.String message)Constructs a new not-removable exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
object- the persistent objectmessage- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()method.
-
NotRemovableException
public NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.String message, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this constraint's detail message.- Parameters:
object- the persistent objectmessage- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
NotRemovableException
public NotRemovableException(org.tentackle.misc.Identifiable object, java.lang.Throwable cause)Constructs a new not-removable exception for a given session with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
object- the persistent objectcause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
-
NotRemovableException
public NotRemovableException()
Constructs a new database constraint exception without a session and withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).
-
NotRemovableException
public NotRemovableException(java.lang.String message)
Constructs a new database constraint exception without a session 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 thePersistenceException.getMessage()method.
-
NotRemovableException
public NotRemovableException(java.lang.String message, java.lang.Throwable cause)Constructs a new database constraint exception without a session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this runtime exception's detail message.- Parameters:
message- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-