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
public class KurentoException extends RuntimeException
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.
- Since:
- 4.1.1
- Author:
- Ivan Gracia (izanmail@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KurentoException()default 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 Detail
-
KurentoException
public KurentoException()
default constructor.
-
KurentoException
public KurentoException(String msg)
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
public KurentoException(String msg, Throwable throwable)
- 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
public KurentoException(Throwable throwable)
- 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.)
-
-