Package org.jitsi.service.neomedia
Class MediaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jitsi.service.neomedia.MediaException
-
- All Implemented Interfaces:
Serializable
public class MediaException extends Exception
Implements an Exception thrown by the neomedia service interfaces and their implementations. MediaException carries an error code in addition to the standard Exception properties which gives more information about the specifics of the particular MediaException.- Author:
- Lubomir Marinov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intGENERAL_ERRORThe error code value which specifies that the MediaException carrying it does not give more information about its specifics.
-
Constructor Summary
Constructors Constructor Description MediaException(String message)Initializes a new MediaException instance with a specific detailed message andGENERAL_ERRORerror code.MediaException(String message, int errorCode)Initializes a new MediaException instance with a specific detailed message and a specific error code.MediaException(String message, int errorCode, Throwable cause)Initializes a new MediaException instance with a specific detailed message, a specific error code and a specific Throwable cause.MediaException(String message, Throwable cause)Initializes a new MediaException instance with a specific detailed message,GENERAL_ERRORerror code and a specific Throwable cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Gets the error code carried by this MediaException which gives more information about the specifics of this MediaException.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
GENERAL_ERROR
public static final int GENERAL_ERROR
The error code value which specifies that the MediaException carrying it does not give more information about its specifics.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MediaException
public MediaException(String message)
Initializes a new MediaException instance with a specific detailed message andGENERAL_ERRORerror code.- Parameters:
message- the detailed message to initialize the new instance with
-
MediaException
public MediaException(String message, int errorCode)
Initializes a new MediaException instance with a specific detailed message and a specific error code.- Parameters:
message- the detailed message to initialize the new instance witherrorCode- the error code which is to give more information about the specifics of the new instance
-
MediaException
public MediaException(String message, Throwable cause)
Initializes a new MediaException instance with a specific detailed message,GENERAL_ERRORerror code and a specific Throwable cause.- Parameters:
message- the detailed message to initialize the new instance withcause- the Throwable which is to be carried by the new instance and which is to be reported as the cause for throwing the new instance. If cause is null, the cause for throwing the new instance is considered to be unknown.
-
MediaException
public MediaException(String message, int errorCode, Throwable cause)
Initializes a new MediaException instance with a specific detailed message, a specific error code and a specific Throwable cause.- Parameters:
message- the detailed message to initialize the new instance witherrorCode- the error code which is to give more information about the specifics of the new instancecause- the Throwable which is to be carried by the new instance and which is to be reported as the cause for throwing the new instance. If cause is null, the cause for throwing the new instance is considered to be unknown.
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets the error code carried by this MediaException which gives more information about the specifics of this MediaException.- Returns:
- the error code carried by this MediaException which gives more information about the specifics of this MediaException
-
-