|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jp.co.jprs.idnkit.IDNException
public final class IDNException
Exception for the idnkit package. When an idnkit library call doesn't succeed, jp.co.jprs.idnkit package throws an 'IDNException' exception. Error codes defined by IDNException correspond with those of idnkit library.
| Field Summary | |
|---|---|
static int |
BIDICHECK_ERROR
Error code of idnkit library 'idn_bidicheck_error'. |
static int |
BUFFER_OVERFLOW
Error code of idnkit library 'idn_buffer_overflow'. |
static int |
COMBCHECK_ERROR
Error code of idnkit library 'idn_combcheck_error'. |
static int |
CONTEXT_REQUIRED
Error code of idnkit library 'idn_context_required'. |
static int |
CTXJCHECK_ERROR
Error code of idnkit library 'idn_ctxjcheck_error'. |
static int |
CTXOCHECK_ERROR
Error code of idnkit library 'idn_ctxocheck_error'. |
static int |
FAILURE
Error code of idnkit library 'idn_failure'. |
static int |
HYPHCHECK_ERROR
Error code of idnkit library 'idn_hyphcheck_error'. |
static int |
INVALID_ACTION
Error code of idnkit library 'idn_invalid_action'. |
static int |
INVALID_CODE_POINT
Error code of idnkit library 'idn_invalid_codepoint'. |
static int |
INVALID_ENCODING
Error code of idnkit library 'idn_invalid_encoding'. |
static int |
INVALID_MESSAGE
Error code of idnkit library 'idn_invalid_message'. |
static int |
INVALID_NAME
Error code of idnkit library 'idn_invalid_name'. |
static int |
INVALID_SYNTAX
Error code of idnkit library 'idn_invalid_syntax'. |
static int |
LENCHECK_ERROR
Error code of idnkit library 'idn_lencheck_error'. |
static int |
LOCALCHECK_ERROR
Error code of idnkit library 'idn_localcheck_error'. |
static int |
NEQ
Error code of idnkit library 'idn_neq'. |
static int |
NFCCHECK_ERROR
Error code of idnkit library 'idn_nfccheck_error'. |
static int |
NO_ENTRY
Error code of idnkit library 'idn_noentry'. |
static int |
NO_FILE
Error code of idnkit library 'idn_nofile'. |
static int |
NO_MAPPING
Error code of idnkit library 'idn_mapping'. |
static int |
NO_MEMORY
Error code of idnkit library 'idn_nomemory'. |
static int |
NOT_FOUND
Error code of idnkit library 'idn_not_found'. |
static int |
PREFCHECK_ERROR
Error code of idnkit library 'idn_prefcheck_error'. |
static int |
PROHCHECK_ERROR
Error code of idnkit library 'idn_prohcheck_error'. |
static int |
RTCHECK_ERROR
Error code of idnkit library 'idn_rtcheck_error'. |
static int |
SUCCESS
Error code of idnkit library 'idn_success'. |
static int |
TR46CHECK_ERROR
Error code of idnkit library 'idn_tr46check_error'. |
static int |
UNASCHECK_ERROR
Error code of idnkit library 'idn_unascheck_error'. |
| Constructor Summary | |
|---|---|
IDNException(int code)
Creates an instance with an error code 'code'. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Gets an error code of the instance. |
java.lang.String |
getMessage()
Gets an error message corresponding with the error code. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SUCCESS
public static final int NOT_FOUND
public static final int INVALID_ENCODING
public static final int INVALID_SYNTAX
public static final int INVALID_NAME
public static final int INVALID_MESSAGE
public static final int INVALID_ACTION
public static final int INVALID_CODE_POINT
public static final int BUFFER_OVERFLOW
public static final int NO_ENTRY
public static final int NO_MEMORY
public static final int NO_FILE
public static final int NO_MAPPING
public static final int CONTEXT_REQUIRED
public static final int PROHCHECK_ERROR
public static final int UNASCHECK_ERROR
public static final int NFCCHECK_ERROR
public static final int PREFCHECK_ERROR
public static final int HYPHCHECK_ERROR
public static final int COMBCHECK_ERROR
public static final int CTXJCHECK_ERROR
public static final int CTXOCHECK_ERROR
public static final int BIDICHECK_ERROR
public static final int LOCALCHECK_ERROR
public static final int LENCHECK_ERROR
public static final int RTCHECK_ERROR
public static final int TR46CHECK_ERROR
public static final int NEQ
public static final int FAILURE
| Constructor Detail |
|---|
public IDNException(int code)
code - Error code.| Method Detail |
|---|
public int getErrorCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||