jp.co.jprs.idnkit
Class IDNException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jp.co.jprs.idnkit.IDNException
All Implemented Interfaces:
java.io.Serializable

public final class IDNException
extends java.lang.Exception

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.

Version:
2.1
Author:
Japan Registry Services Co., Ltd.(JPRS)
See Also:
Serialized Form

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

SUCCESS

public static final int SUCCESS
Error code of idnkit library 'idn_success'.

See Also:
Constant Field Values

NOT_FOUND

public static final int NOT_FOUND
Error code of idnkit library 'idn_not_found'.

See Also:
Constant Field Values

INVALID_ENCODING

public static final int INVALID_ENCODING
Error code of idnkit library 'idn_invalid_encoding'.

See Also:
Constant Field Values

INVALID_SYNTAX

public static final int INVALID_SYNTAX
Error code of idnkit library 'idn_invalid_syntax'.

See Also:
Constant Field Values

INVALID_NAME

public static final int INVALID_NAME
Error code of idnkit library 'idn_invalid_name'.

See Also:
Constant Field Values

INVALID_MESSAGE

public static final int INVALID_MESSAGE
Error code of idnkit library 'idn_invalid_message'.

See Also:
Constant Field Values

INVALID_ACTION

public static final int INVALID_ACTION
Error code of idnkit library 'idn_invalid_action'.

See Also:
Constant Field Values

INVALID_CODE_POINT

public static final int INVALID_CODE_POINT
Error code of idnkit library 'idn_invalid_codepoint'.

See Also:
Constant Field Values

BUFFER_OVERFLOW

public static final int BUFFER_OVERFLOW
Error code of idnkit library 'idn_buffer_overflow'.

See Also:
Constant Field Values

NO_ENTRY

public static final int NO_ENTRY
Error code of idnkit library 'idn_noentry'.

See Also:
Constant Field Values

NO_MEMORY

public static final int NO_MEMORY
Error code of idnkit library 'idn_nomemory'.

See Also:
Constant Field Values

NO_FILE

public static final int NO_FILE
Error code of idnkit library 'idn_nofile'.

See Also:
Constant Field Values

NO_MAPPING

public static final int NO_MAPPING
Error code of idnkit library 'idn_mapping'.

See Also:
Constant Field Values

CONTEXT_REQUIRED

public static final int CONTEXT_REQUIRED
Error code of idnkit library 'idn_context_required'.

See Also:
Constant Field Values

PROHCHECK_ERROR

public static final int PROHCHECK_ERROR
Error code of idnkit library 'idn_prohcheck_error'.

See Also:
Constant Field Values

UNASCHECK_ERROR

public static final int UNASCHECK_ERROR
Error code of idnkit library 'idn_unascheck_error'.

See Also:
Constant Field Values

NFCCHECK_ERROR

public static final int NFCCHECK_ERROR
Error code of idnkit library 'idn_nfccheck_error'.

See Also:
Constant Field Values

PREFCHECK_ERROR

public static final int PREFCHECK_ERROR
Error code of idnkit library 'idn_prefcheck_error'.

See Also:
Constant Field Values

HYPHCHECK_ERROR

public static final int HYPHCHECK_ERROR
Error code of idnkit library 'idn_hyphcheck_error'.

See Also:
Constant Field Values

COMBCHECK_ERROR

public static final int COMBCHECK_ERROR
Error code of idnkit library 'idn_combcheck_error'.

See Also:
Constant Field Values

CTXJCHECK_ERROR

public static final int CTXJCHECK_ERROR
Error code of idnkit library 'idn_ctxjcheck_error'.

See Also:
Constant Field Values

CTXOCHECK_ERROR

public static final int CTXOCHECK_ERROR
Error code of idnkit library 'idn_ctxocheck_error'.

See Also:
Constant Field Values

BIDICHECK_ERROR

public static final int BIDICHECK_ERROR
Error code of idnkit library 'idn_bidicheck_error'.

See Also:
Constant Field Values

LOCALCHECK_ERROR

public static final int LOCALCHECK_ERROR
Error code of idnkit library 'idn_localcheck_error'.

See Also:
Constant Field Values

LENCHECK_ERROR

public static final int LENCHECK_ERROR
Error code of idnkit library 'idn_lencheck_error'.

See Also:
Constant Field Values

RTCHECK_ERROR

public static final int RTCHECK_ERROR
Error code of idnkit library 'idn_rtcheck_error'.

See Also:
Constant Field Values

TR46CHECK_ERROR

public static final int TR46CHECK_ERROR
Error code of idnkit library 'idn_tr46check_error'.

See Also:
Constant Field Values

NEQ

public static final int NEQ
Error code of idnkit library 'idn_neq'.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Error code of idnkit library 'idn_failure'.

See Also:
Constant Field Values
Constructor Detail

IDNException

public IDNException(int code)
Creates an instance with an error code 'code'.

Parameters:
code - Error code.
Method Detail

getErrorCode

public int getErrorCode()
Gets an error code of the instance.

Returns:
Error code.

getMessage

public java.lang.String getMessage()
Gets an error message corresponding with the error code.

Overrides:
getMessage in class java.lang.Throwable
Returns:
Error message.