|
|||||||||
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.io.IOException
javax.microedition.content.ContentHandlerException
public class ContentHandlerException
A ContentHandlerException is thrown to report errors specific to registration and invocation of content handlers. Instances are immutable and thread safe.
Field Summary | ||
---|---|---|
static int |
AMBIGUOUS
The reason is AMBIGUOUS in a
ContentHandlerException when an ID does not
uniquely identify a single content handler application. |
|
static int |
CAPACITY_EXCEEDED
The reason is CAPACITY_EXCEEDED in a ContentHandlerException when the implementation does not support longer IDs, or more actions, more types, or more suffixes than the minimums and the application exceeds the minimums. |
|
static int |
NO_REGISTERED_HANDLER
The reason is NO_REGISTERED_HANDLER in a
ContentHandlerException when there is no content handler
registered of the requested combination of
ID, type, suffix, and action. |
|
static int |
TYPE_UNKNOWN
The reason is TYPE_UNKNOWN in a
ContentHandlerException when the type is not available. |
Constructor Summary | ||
---|---|---|
ContentHandlerException(String reason,
int errcode)
Constructs a ContentHandlerException with a reason
and error code. |
Method Summary | ||
---|---|---|
int |
getErrorCode()
Returns the error code for the 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 NO_REGISTERED_HANDLER
NO_REGISTERED_HANDLER
in a
ContentHandlerException when there is no content handler
registered of the requested combination of
ID, type, suffix, and action.
public static final int TYPE_UNKNOWN
TYPE_UNKNOWN
in a
ContentHandlerException when the type is not available.
public static final int AMBIGUOUS
AMBIGUOUS
in a
ContentHandlerException when an ID does not
uniquely identify a single content handler application.
public static final int CAPACITY_EXCEEDED
Constructor Detail |
---|
public ContentHandlerException(String reason, int errcode)
ContentHandlerException
with a reason
and error code.
The error message string reason
can later be
retrieved by the
java.lang.Throwable.getMessage
method.
reason
- the reason for the exceptionerrcode
- the error code; one of
ContentHandlerException.NO_REGISTERED_HANDLER
, ContentHandlerException.AMBIGUOUS
, ContentHandlerException.CAPACITY_EXCEEDED
,
or ContentHandlerException.TYPE_UNKNOWN
IllegalArgumentException
- if errcode
is not
one of
ContentHandlerException.NO_REGISTERED_HANDLER
, ContentHandlerException.AMBIGUOUS
, @link #CAPACITY_EXCEEDED},
or ContentHandlerException.TYPE_UNKNOWN
Method Detail |
---|
public int getErrorCode()
ContentHandlerException.NO_REGISTERED_HANDLER
, ContentHandlerException.AMBIGUOUS
, ContentHandlerException.CAPACITY_EXCEEDED
,
or ContentHandlerException.TYPE_UNKNOWN
|
|||||||||
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