Nitido Inc.

com.nitido.nim
Class NiMRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.nitido.nim.NiMRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LicenseMissingException, PermissionDeniedException

public class NiMRuntimeException
extends java.lang.RuntimeException

The NiMRuntimeException is the base class for all NiM runtime exceptions

See Also:
Serialized Form

Field Summary
protected  int _errorCode
          The error code of the exception.
 
Constructor Summary
NiMRuntimeException()
          This constructor is used to instantiate a new NiMRuntimeException that has no particular message attached to it.
NiMRuntimeException(int errorCode, java.lang.String message)
          Constructor with the specified detail message and the error code.
NiMRuntimeException(int errorCode, java.lang.String message, java.lang.Throwable cause)
          Constructor, with errorcode, message and cause.
NiMRuntimeException(int errorCode, java.lang.Throwable cause)
          Constructor, with no message.
NiMRuntimeException(java.lang.String message)
          This constructor is called to instantiate a new NiMRuntimeException with an associated message.
 
Method Summary
 int getErrorCode()
          Get the error code associated to this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_errorCode

protected int _errorCode
The error code of the exception. By default, it is 1.

Constructor Detail

NiMRuntimeException

public NiMRuntimeException()
This constructor is used to instantiate a new NiMRuntimeException that has no particular message attached to it.


NiMRuntimeException

public NiMRuntimeException(java.lang.String message)
This constructor is called to instantiate a new NiMRuntimeException with an associated message.

Parameters:
message - The message attached to the exception.

NiMRuntimeException

public NiMRuntimeException(int errorCode,
                           java.lang.String message)
Constructor with the specified detail message and the error code.

Parameters:
errorCode - The error code.
message - The detail exception message.

NiMRuntimeException

public NiMRuntimeException(int errorCode,
                           java.lang.Throwable cause)
Constructor, with no message.

Parameters:
errorCode - error code
cause - cause

NiMRuntimeException

public NiMRuntimeException(int errorCode,
                           java.lang.String message,
                           java.lang.Throwable cause)
Constructor, with errorcode, message and cause.

Parameters:
errorCode - errorcode
message - message
cause - cause of this exception
Method Detail

getErrorCode

public int getErrorCode()
Get the error code associated to this exception.

Returns:
The error code.

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.