|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.microedition.global.ResourceException
public final class ResourceException
Thrown when a resource manager operation fails.
Field Summary | ||
---|---|---|
static int |
DATA_ERROR
A data error occurred when reading the resource file. |
|
static int |
METAFILE_NOT_FOUND
Meta-information file containing information about supported locales not found for base name. |
|
static int |
NO_RESOURCES_FOR_BASE_NAME
No resources for this base name found. |
|
static int |
NO_SYSTEM_DEFAULT_LOCALE
The system's default locale is not defined (is null). |
|
static int |
RESOURCE_NOT_FOUND
A resource with the specified ID was not found. |
|
static int |
UNKNOWN_ERROR
Unknown error. |
|
static int |
UNKNOWN_RESOURCE_TYPE
Encountered an unknown resource type in the resource file. |
|
static int |
WRONG_RESOURCE_TYPE
Wrong resource type. |
Constructor Summary | ||
---|---|---|
ResourceException(int err,
String message)
Constructs an exception instance with an error code and a detail message. |
Method Summary | ||
---|---|---|
int |
getErrorCode()
Returns the error code associated with this exception. |
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 int UNKNOWN_ERROR
public static final int RESOURCE_NOT_FOUND
public static final int WRONG_RESOURCE_TYPE
public static final int NO_RESOURCES_FOR_BASE_NAME
public static final int NO_SYSTEM_DEFAULT_LOCALE
public static final int DATA_ERROR
public static final int UNKNOWN_RESOURCE_TYPE
public static final int METAFILE_NOT_FOUND
Constructor Detail |
---|
public ResourceException(int err, String message)
err
- the error codemessage
- the detail messageMethod Detail |
---|
public int getErrorCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal