org.otfeed.event
Class OTError

java.lang.Object
  extended by org.otfeed.event.OTError

public final class OTError
extends java.lang.Object

This class provides error information.


Constructor Summary
OTError()
          Default constructor.
OTError(int requestId, int code, java.lang.String description)
          Constructor.
 
Method Summary
 int getCode()
           
 java.lang.String getDescription()
           
 int getRequestId()
           
 void setCode(int code)
          Sets error code.
 void setDescription(java.lang.String description)
          Sets description of the error.
 void setRequestId(int requestId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OTError

public OTError()
Default constructor.


OTError

public OTError(int requestId,
               int code,
               java.lang.String description)
Constructor.

Parameters:
requestId - ID of the request which caused the error.
code - Error code.
description - Description of the error.
Method Detail

getRequestId

public int getRequestId()
Returns:
ID of the request which caused the error.

setRequestId

public void setRequestId(int requestId)

getCode

public int getCode()
Returns:
Error code.

setCode

public void setCode(int code)
Sets error code.

Parameters:
code - Error code.

getDescription

public java.lang.String getDescription()
Returns:
Description of the error.

setDescription

public void setDescription(java.lang.String description)
Sets description of the error.

Parameters:
description - Description of the error.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Mike Kroutikov. All Rights Reserved.