Package org.kurento.commons.exception
Class KurentoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kurento.commons.exception.KurentoException
- All Implemented Interfaces:
Serializable
It's usage is intended for system-level exceptions. Usage is encouraged in the following cases:
- If the method encounters a system exception or error, but never for business related errors.
- If the method performs an operation that results in a checked exception that the bean method cannot recover.
- Any other unexpected error conditions.
The original exception cause must be provided within the exception if it is raised due to a previous exception.
This kind of exceptions are not checked and with CMT provoke a roll back at the moment the are thrown.
- Since:
- 4.1.1
- Author:
- Ivan Gracia (izanmail@gmail.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptiondefault constructor.KurentoException(String msg) Constructs a new runtime exception with the specified detail message.KurentoException(String msg, Throwable throwable) KurentoException(Throwable throwable) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KurentoException
public KurentoException()default constructor. -
KurentoException
Constructs a new runtime exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.- Parameters:
msg- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
KurentoException
- Parameters:
msg- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.throwable- 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.)
-
KurentoException
- Parameters:
throwable- 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.)
-