Class AsyncMedia.MediaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.media.AsyncMedia.MediaException
- Enclosing interface:
AsyncMedia
Encapsulates a media exception.
Since
7.0
-
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, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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.
-