Class AsyncMedia.MediaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.media.AsyncMedia.MediaException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
AsyncMedia
Encapsulates a media exception.
Since
7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception of the given type.MediaException(AsyncMedia.MediaErrorType type, String message) Creates an exception of the given type.MediaException(AsyncMedia.MediaErrorType type, Throwable cause) Creates an exception of the given type. -
Method Summary
Modifier and TypeMethodDescriptionGets the error type.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MediaException
Creates an exception of the given type.
Parameters
type: The type of exception
-
MediaException
Creates an exception of the given type.
Parameters
-
type: THe type of error. -
message: The error message.
-
-
MediaException
Creates an exception of the given type.
Parameters
-
type: The type of error -
cause: An underlying exception that caused this error.
-
-
-
Method Details
-
getMediaErrorType
Gets the error type.
-