it.eng.spago.error
Class EMFInternalError

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

public class EMFInternalError
extends EMFAbstractError
implements java.io.Serializable

Un'istanza di EMFInternalError rappresenta un errore non codificato. Questo significa che non esiste nessun repository contenente il riferimento a questo errore.

See Also:
EMFErrorHandler, Serialized Form

Field Summary
static java.lang.String ERROR_NATIVE_EXCEPTION
           
static java.lang.String INTERNAL_ERROR_ELEMENT
           
 
Fields inherited from class it.eng.spago.error.EMFAbstractError
ABSTRACT_ERROR_ELEMENT, ERROR_ADDITIONAL_INFO, ERROR_DESCRIPTION, ERROR_SEVERITY
 
Constructor Summary
EMFInternalError(EMFInternalError internalError)
          Costruisce un oggetto di tipo EMFInternalError utilizzando lo stato del parametro in input .
EMFInternalError(java.lang.String severity, java.lang.Exception ex)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e un'eccezione.
EMFInternalError(java.lang.String severity, java.lang.Object additionalInfo)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e un oggetto di qualsiasi natura.
EMFInternalError(java.lang.String severity, java.lang.String description)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e una descrizione dell'errore .
EMFInternalError(java.lang.String severity, java.lang.String description, java.lang.Exception ex)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione e un'eccezione.
EMFInternalError(java.lang.String severity, java.lang.String description, java.lang.Exception ex, java.lang.Object additionalInfo)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione, un'eccezione e un oggetto di qualsiasi natura.
EMFInternalError(java.lang.String severity, java.lang.String description, java.lang.Object additionalInfo)
          Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione e un oggetto di qualsiasi natura.
 
Method Summary
 CloneableObject cloneObject()
          Ritorna un clone dell'oggetto stesso.
 java.lang.Exception getNativeException()
          Se l'oggetto è stato costruito ricevendo come parametro un' eccezione questa viene ritornata.
 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

INTERNAL_ERROR_ELEMENT

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

ERROR_NATIVE_EXCEPTION

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

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.String description)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e una descrizione dell'errore .

Parameters:
severity - severity dell'errore.
description - descrizione dell'errore.

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.Exception ex)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e un'eccezione.

Parameters:
severity - severity dell'errore.
ex - eccezione .

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.Object additionalInfo)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity e un oggetto di qualsiasi natura.

Parameters:
severity - severity dell'errore.
additionalInfo - oggetto di qualsiasi natura.

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.String description,
                        java.lang.Exception ex)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione e un'eccezione.

Parameters:
severity - severity dell'errore.
description - descrizione dell'errore.
ex - eccezione.

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.String description,
                        java.lang.Object additionalInfo)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione e un oggetto di qualsiasi natura.

Parameters:
severity - severity dell'errore.
description - descrizione dell'errore.
additionalInfo - oggetto di qualsiasi natura.

EMFInternalError

public EMFInternalError(java.lang.String severity,
                        java.lang.String description,
                        java.lang.Exception ex,
                        java.lang.Object additionalInfo)
Costruisce un oggetto di tipo EMFInternalError identificandolo tramite una severity , una descrizione, un'eccezione e un oggetto di qualsiasi natura.

Parameters:
severity - severity dell'errore.
description - descrizione dell'errore.
ex - eccezione.
additionalInfo - oggetto di qualsiasi natura.

EMFInternalError

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

Parameters:
internalError - oggetto della stessa classe.
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

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

getNativeException

public java.lang.Exception getNativeException()
Se l'oggetto è stato costruito ricevendo come parametro un' eccezione questa viene ritornata.

Returns:
Exception parametro passato in input.