biz.onixs.fix.fastnew
Class ReportableErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by biz.onixs.fix.fastnew.ReportableErrorException
All Implemented Interfaces:
Serializable

public class ReportableErrorException
extends RuntimeException

This class encapsulates the various error codes that were defined as Reportable errors in the FAST Specification.

See Also:
Serialized Form

Nested Class Summary
static class ReportableErrorException.Code
          The valid error codes
 
Field Summary
protected  ReportableErrorException.Code code
          The error code for this exception.
 
Constructor Summary
ReportableErrorException(ReportableErrorException.Code code)
          A constructor for reportable errors that takes only an error code.
ReportableErrorException(ReportableErrorException.Code code, String message)
          A constructor for reportable errors that takes and error code and a message.
ReportableErrorException(ReportableErrorException.Code code, String message, Throwable cause)
          A constructor for reportable errors that takes an error code, a message, and a cause.
ReportableErrorException(ReportableErrorException.Code code, Throwable cause)
          A constructor for reportable errors that takes an error code and a cause.
 
Method Summary
 ReportableErrorException.Code getCode()
          Returns the error code for 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

code

protected ReportableErrorException.Code code
The error code for this exception.

Constructor Detail

ReportableErrorException

public ReportableErrorException(ReportableErrorException.Code code)
A constructor for reportable errors that takes only an error code.

Parameters:
code - the error code to throw

ReportableErrorException

public ReportableErrorException(ReportableErrorException.Code code,
                                String message)
A constructor for reportable errors that takes and error code and a message.

Parameters:
code - the error code to throw
message - a message describing the error

ReportableErrorException

public ReportableErrorException(ReportableErrorException.Code code,
                                Throwable cause)
A constructor for reportable errors that takes an error code and a cause.

Parameters:
code - the error code to throw
cause - the originating cause of this error

ReportableErrorException

public ReportableErrorException(ReportableErrorException.Code code,
                                String message,
                                Throwable cause)
A constructor for reportable errors that takes an error code, a message, and a cause.

Parameters:
code - the error code to throw
message - a message describing the error
cause - the originating cause of this error
Method Detail

getCode

public ReportableErrorException.Code getCode()
Returns the error code for this exception

Returns:
the error code


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.