it.eng.spago.error
Class EMFUserError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byit.eng.spago.error.EMFAbstractError
              extended byit.eng.spago.error.EMFUserError
All Implemented Interfaces:
CloneableObject, java.io.Serializable, XMLObject

public class EMFUserError
extends EMFAbstractError
implements java.io.Serializable

Un'istanza di EMFUserError rappresenta un errore codificato. Questo significa che esiste un repository contenente il riferimento a questo errore e la sua descrizione.

See Also:
EMFErrorHandler, Serialized Form

Field Summary
static java.lang.String USER_ERROR_CODE
           
static java.lang.String USER_ERROR_ELEMENT
           
 
Fields inherited from class it.eng.spago.error.EMFAbstractError
ABSTRACT_ERROR_ELEMENT, ERROR_ADDITIONAL_INFO, ERROR_DESCRIPTION, ERROR_SEVERITY
 
Constructor Summary
EMFUserError(EMFUserError userError)
          Costruisce un oggetto di tipo EMFUserError utilizzando lo stato del parametro in input .
EMFUserError(java.lang.String severity, int code)
          Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity e un codice di errore .
EMFUserError(java.lang.String severity, int code, java.util.List params)
          Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity ,un codice di errore e una collezione di parametri che andranno a sostituire i caratteri % nella stringa di descrizione.
EMFUserError(java.lang.String severity, int code, java.util.List params, java.lang.Object additionalInfo)
          Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity ,un codice di errore , una collezione di parametri che andranno a sostituire i caratteri % nella stringa di descrizione e un oggetto di qualsiasi natura.
 
Method Summary
 CloneableObject cloneObject()
          Ritorna un clone dell'oggetto stesso.
 int getCode()
          Ritorna il codice dell'errore.
 SourceBean getSourceBean()
          Ritorna un SourceBean popolato con gli attributi dell'oggetto.
 
Methods inherited from class it.eng.spago.error.EMFAbstractError
getAdditionalInfo, getDescription, getMessage, getSeverity, setAdditionalInfo, setDescription, setSeverity, toDocument, toElement, toXML, toXML, toXML
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

USER_ERROR_ELEMENT

public static final java.lang.String USER_ERROR_ELEMENT
See Also:
Constant Field Values

USER_ERROR_CODE

public static final java.lang.String USER_ERROR_CODE
See Also:
Constant Field Values
Constructor Detail

EMFUserError

public EMFUserError(java.lang.String severity,
                    int code)
Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity e un codice di errore .

Parameters:
severity - severity dell'errore.
code - codice di errore.

EMFUserError

public EMFUserError(java.lang.String severity,
                    int code,
                    java.util.List params)
Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity ,un codice di errore e una collezione di parametri che andranno a sostituire i caratteri % nella stringa di descrizione.

Parameters:
severity - severity dell'errore.
code - codice di errore.
params - vettore di parametri che verranno inseriti nella stringa di descrizione.

EMFUserError

public EMFUserError(java.lang.String severity,
                    int code,
                    java.util.List params,
                    java.lang.Object additionalInfo)
Costruisce un oggetto di tipo EMFUserError identificandolo tramite una severity ,un codice di errore , una collezione di parametri che andranno a sostituire i caratteri % nella stringa di descrizione e un oggetto di qualsiasi natura.

Parameters:
severity - severity dell'errore.
code - codice di errore.
params - vettore di parametri che verranno inseriti nella stringa di descrizione.
additionalInfo - oggetto di qualsiasi natura.

EMFUserError

public EMFUserError(EMFUserError userError)
Costruisce un oggetto di tipo EMFUserError utilizzando lo stato del parametro in input .

Method Detail

cloneObject

public CloneableObject cloneObject()
Ritorna un clone dell'oggetto stesso.

Specified by:
cloneObject in interface CloneableObject
Returns:
CloneableObject il clone dell'oggetto.
See Also:
CloneableObject

getCode

public int getCode()
Ritorna il codice dell'errore.

Returns:
int codice dell'errore.

getSourceBean

public SourceBean getSourceBean()
Ritorna un SourceBean popolato con gli attributi dell'oggetto.

Specified by:
getSourceBean in class EMFAbstractError
Returns:
SourceBean contenente gli attributi dell'oggetto.
See Also:
SourceBean