com.stratelia.webactiv.util.exception
Class SilverpeasTrappedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.stratelia.webactiv.util.exception.SilverpeasException
              extended by com.stratelia.webactiv.util.exception.SilverpeasTrappedException
All Implemented Interfaces:
FromModule, WithNested, Serializable
Direct Known Subclasses:
JobDomainPeasTrappedException, UtilTrappedException

public abstract class SilverpeasTrappedException
extends SilverpeasException

SilverpeasException est la racine de la hiérarchie d'exception silverpeas. Toutes les classes d'exception spécifiques aux differents modules doivent dériver (directement ou non) de SilverpeasException. La page d'erreur globale à l'application ne saura traiter correctement que les SilverpeasException. Les autres exception (ou error ou runtime) provoqueront l'affichage d'une page d'erreur imprévue. Le message que l'on donne à l'exception est très important, il doit etre affiché à l'utilisateur. C'est pourquoi le label est multilangue. Chaque classe heritant de SilverpeasException doit surdefinir la fonction getModule qui retourne le nom du module (le meme nom que celui defini dans Silvertrace)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stratelia.webactiv.util.exception.SilverpeasException
ERROR, FATAL, WARNING
 
Constructor Summary
SilverpeasTrappedException(String callingClass, int errorLevel, String message)
           
SilverpeasTrappedException(String callingClass, int errorLevel, String message, Exception nested)
           
SilverpeasTrappedException(String callingClass, int errorLevel, String message, String extraParams)
           
SilverpeasTrappedException(String callingClass, int errorLevel, String message, String extraParams, Exception nested)
           
 
Method Summary
 String getGoBackPage()
           
 void setGoBackPage(String gbp)
           
 
Methods inherited from class com.stratelia.webactiv.util.exception.SilverpeasException
getChainedExceptions, getErrorLevel, getExtraInfos, getMessageLang, getMessageLang, getModule, getNested, printStackTrace, printStackTrace, printStackTrace, traceException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SilverpeasTrappedException

public SilverpeasTrappedException(String callingClass,
                                  int errorLevel,
                                  String message)

SilverpeasTrappedException

public SilverpeasTrappedException(String callingClass,
                                  int errorLevel,
                                  String message,
                                  String extraParams)

SilverpeasTrappedException

public SilverpeasTrappedException(String callingClass,
                                  int errorLevel,
                                  String message,
                                  Exception nested)

SilverpeasTrappedException

public SilverpeasTrappedException(String callingClass,
                                  int errorLevel,
                                  String message,
                                  String extraParams,
                                  Exception nested)
Method Detail

setGoBackPage

public void setGoBackPage(String gbp)

getGoBackPage

public String getGoBackPage()


Copyright © 2016 Silverpeas. All Rights Reserved.