|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.rim.plazmic.mediaengine.MediaException
Contains the functionality for all exceptions specific to this framework.
| Field Summary | ||
static int |
CHECKSUM_MISMATCH
Represents an error that occurs when the checksum fails. |
|
static int |
INTERRUPTED_DOWNLOAD
Represents an error that occurs when the requested download operation was cancelled. |
|
static int |
INVALID_HEADER
Represents an error that occurs when the requested media is of an unsupported format. |
|
static int |
OUT_OF_BOUNDS
Represents an error that occurs when an array index is out of bounds or when reading from an input stream after EOF. |
|
static String |
rcsId
Represents the RCS ID. |
|
static int |
REQUEST_TIMED_OUT
Represents an error that occurs when the request timed out. |
|
static int |
UNSUPPORTED_TYPE
Represents an error that occurs when the requested media format is not supported. |
|
static int |
UPGRADE_MEDIA
Represents an error that occurs when the current version of the media engine no longer supports a requested feature. |
|
static int |
UPGRADE_PLAYER
Represents an error that occurs when the current version of the media engine is not compatible with a requested feature. |
|
| Constructor Summary | ||
MediaException()
Constructs a MediaException. |
||
MediaException(int code)
Constructs a MediaException given an error code. |
||
MediaException(int code,
String msg)
Constructs a MediaException given both an error code and detailed message describing the cause of the exception. |
||
MediaException(String msg)
Constructs a MediaException with a detailed message describing the circumstances of the exception. |
||
| Method Summary | ||
int |
getCode()
Returns the current error code. |
|
| Methods inherited from class java.lang.Throwable |
getMessage, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String rcsId
Produces identifiers in the compiled code that identify which version number of the source code was used.
public static final int UPGRADE_PLAYER
public static final int UPGRADE_MEDIA
public static final int INVALID_HEADER
public static final int OUT_OF_BOUNDS
public static final int INTERRUPTED_DOWNLOAD
public static final int REQUEST_TIMED_OUT
public static final int UNSUPPORTED_TYPE
public static final int CHECKSUM_MISMATCH
| Constructor Detail |
public MediaException()
This is the default exception constructor.
public MediaException(String msg)
msg - A description of the cause of the exception.public MediaException(int code)
code - An integer representing the error code that caused the exception.
public MediaException(int code,
String msg)
code - An error code describing the cause of the exception.msg - A message describing the cause of the exception.| Method Detail |
public int getCode()
If the returned code is >= 200, the code represents a standard HTTP response code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.