ssbm.commons.exception
Class ServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ssbm.commons.exception.ServerException
All Implemented Interfaces:
java.io.Serializable

public class ServerException
extends java.lang.Exception

Questa classe rappresenta un errore che ha impedito al server di eseguire il servizio richiesto dal client.
La causa non deve essere un errore riscontrato durante l’implementazione della logica di dominio (gestito dalla classe DomainException) ma una qualsiasi altro errore che ha impedito la normale esecuzione del servizio dal lato server. Quest’eccezione può essere lanciata soltanto dal lato client qualora riceva un messaggio che comunica un errore non attinente al livello di dominio.

Author:
Salvatore Piccione
See Also:
Serialized Form

Field Summary
private static java.lang.String MESSAGE_PREFIX
          Prefisso del messaggio esplicativo.
private static long serialVersionUID
           
 
Constructor Summary
ServerException(java.lang.String message)
          Costruisce un'eccezione con un messaggio esplicativo.
ServerException(java.lang.Throwable cause)
          Costruisce un'eccezione con un messaggio esplicativo che ne riporta la causa.
 
Method Summary
 
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

MESSAGE_PREFIX

private static final java.lang.String MESSAGE_PREFIX
Prefisso del messaggio esplicativo.

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ServerException

public ServerException(java.lang.Throwable cause)
Costruisce un'eccezione con un messaggio esplicativo che ne riporta la causa.

Parameters:
cause - la causa dell'eccezione.

ServerException

public ServerException(java.lang.String message)
Costruisce un'eccezione con un messaggio esplicativo.

Parameters:
message - il messaggio esplicativo.