org.esupportail.portal.channels.CSMS.exception
Class ExceptionCanal

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.esupportail.portal.channels.CSMS.exception.ExceptionCanal
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExceptionAccesLdap, ExceptionCodeActivation, ExceptionConfigurationCanal, ExceptionConfirmationEnvoiSms, ExceptionEnvoi, ExceptionEnvoiCodeActivation, ExceptionEnvoiMail, ExceptionEnvoiSms, ExceptionNumeroTelephone, ExceptionParametresEnvoiSms, ExceptionServeurSmsIndisponible

public class ExceptionCanal
extends java.lang.Exception

Id: ExceptionCanal.java,v 1.0 3 janv. 2005 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: ExceptionCanal Original Author: Yohan Colmant

See Also:
Serialized Form

Field Summary
private  int errorCode
          The error code associated to this exception
private  java.lang.String nextState
          The next state of this channel.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ExceptionCanal(int errorCode)
          Constructor
ExceptionCanal(int errorCode, java.lang.String nextState)
          Constructor
 
Method Summary
 int getErrorCode()
          Return the error code associated to this exception
 java.lang.String getNextState()
          Return the next state of this channel.
 void setNextState(java.lang.String nextState)
          Set the next state of this channel.
 java.lang.String toString()
          Return a string form of this exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

errorCode

private int errorCode
The error code associated to this exception


nextState

private java.lang.String nextState
The next state of this channel. Used to go to this state when error

Constructor Detail

ExceptionCanal

public ExceptionCanal(int errorCode)
Constructor

Parameters:
errorCode - the errorCode associate to this exception

ExceptionCanal

public ExceptionCanal(int errorCode,
                      java.lang.String nextState)
Constructor

Parameters:
errorCode - the errorCode associate to this exception
nextState - next state of this channel. Used to go to this state when error
Method Detail

getErrorCode

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

Returns:
the error code

getNextState

public java.lang.String getNextState()
Return the next state of this channel. Used to go to this state when error

Returns:
the next state of this channel. Used to go to this state when error

setNextState

public void setNextState(java.lang.String nextState)
Set the next state of this channel. Used to go to this state when error

Parameters:
nextState - the next state of this channel. Used to go to this state when error

toString

public java.lang.String toString()
Return a string form of this exception