atg.projects.b2cstore
Class B2CProfileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by atg.projects.b2cstore.B2CProfileException
All Implemented Interfaces:
java.io.Serializable

public class B2CProfileException
extends java.lang.Exception

This class is used for error handling in Pioneer Cycling profile management area. It stores the error message, and an error code.

See Also:
B2CProfileFormHandler, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
B2CProfileException(java.lang.String code)
          Constructs a B2CProfileException with only an error message; code and description are null
B2CProfileException(java.lang.String code, java.lang.String message)
          Constructs a B2CProfileException with only an error message; code is null
B2CProfileException(java.lang.String code, java.lang.String message, java.lang.String description)
          Constructs a B2CProfileException with both message and code
 
Method Summary
 java.lang.String getCode()
          Returns property errorCode
 java.lang.String getDescription()
          Returns property description
 java.lang.String getMessage()
          Returns property errorMessage
 void setCode(java.lang.String pCode)
          Returns property errorCode
 void setDescription(java.lang.String pDescription)
          Returns property description
 void setMessage(java.lang.String pMessage)
          Returns property errorMessage
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

B2CProfileException

public B2CProfileException(java.lang.String code,
                           java.lang.String message,
                           java.lang.String description)
Constructs a B2CProfileException with both message and code


B2CProfileException

public B2CProfileException(java.lang.String code,
                           java.lang.String message)
Constructs a B2CProfileException with only an error message; code is null


B2CProfileException

public B2CProfileException(java.lang.String code)
Constructs a B2CProfileException with only an error message; code and description are null

Method Detail

setCode

public void setCode(java.lang.String pCode)
Returns property errorCode


getCode

public java.lang.String getCode()
Returns property errorCode


setMessage

public void setMessage(java.lang.String pMessage)
Returns property errorMessage


getMessage

public java.lang.String getMessage()
Returns property errorMessage

Overrides:
getMessage in class java.lang.Throwable

setDescription

public void setDescription(java.lang.String pDescription)
Returns property description


getDescription

public java.lang.String getDescription()
Returns property description


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
a String representation of this object