com.eurotech.framework.protocol.pcn
Class PcnProtocolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.eurotech.framework.protocol.pcn.PcnProtocolException
All Implemented Interfaces:
Serializable

public class PcnProtocolException
extends Exception

The ProtocolException class is the superclass of all errors and exceptions in the ESF Protocol project. It extends the JDK Exception class by requesting its invokers to provide an error code when building its instances. The code is one value of ProtocolErrorCode enum; the code is used to document the possible error conditions generated by the platform as well as to identify the localized exception messages to be reported. Exceptions messages are stored in the ProtocolExceptionMessagesBundle Properties Bundle and they are keyed on the exception code.

See Also:
Serialized Form

Field Summary
protected  PcnProtocolErrorCode m_code
           
 
Constructor Summary
PcnProtocolException(PcnProtocolErrorCode code)
          Builds a new EdcException instance based on the supplied EdcErrorCode.
PcnProtocolException(PcnProtocolErrorCode code, Throwable cause, Object... arguments)
          Builds a new EdcException instance based on the supplied EdcErrorCode, an optional Throwable cause, and optional arguments for the associated exception message.
PcnProtocolException(String message)
           
PcnProtocolException(String message, Throwable cause)
           
PcnProtocolException(Throwable t)
           
 
Method Summary
 PcnProtocolErrorCode getCode()
           
 String getLocalizedMessage()
           
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

m_code

protected PcnProtocolErrorCode m_code
Constructor Detail

PcnProtocolException

public PcnProtocolException(String message)

PcnProtocolException

public PcnProtocolException(String message,
                            Throwable cause)

PcnProtocolException

public PcnProtocolException(Throwable t)

PcnProtocolException

public PcnProtocolException(PcnProtocolErrorCode code)
Builds a new EdcException instance based on the supplied EdcErrorCode.

Parameters:
code -
t -
arguments -

PcnProtocolException

public PcnProtocolException(PcnProtocolErrorCode code,
                            Throwable cause,
                            Object... arguments)
Builds a new EdcException instance based on the supplied EdcErrorCode, an optional Throwable cause, and optional arguments for the associated exception message.

Parameters:
code -
t -
arguments -
Method Detail

getCode

public PcnProtocolErrorCode getCode()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable


Copyright © 2013. All Rights Reserved.