|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
it.eng.spago.error.EMFAbstractError
it.eng.spago.error.EMFUserError
public class EMFUserError
Un'istanza di EMFUserError
rappresenta un errore codificato. Questo significa che esiste un
repository contenente il riferimento a questo errore e la sua descrizione.
EMFErrorHandler
,
Serialized FormField Summary | |
---|---|
private int |
_code
|
private java.util.Vector |
_params
|
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.lang.String boundleName)
build an EMFUserError object defining it by means of a severity and an error code |
|
EMFUserError(java.lang.String severity,
int code,
java.util.Vector 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.Vector 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. |
|
EMFUserError(java.lang.String severity,
int code,
java.util.Vector params,
java.lang.Object additionalInfo,
java.lang.String boundleName)
build an EMFUserError object defining it by means of a severity, an error code, a parameters vector
and an additional object |
|
EMFUserError(java.lang.String severity,
int code,
java.util.Vector params,
java.lang.String boundleName)
build an EMFUserError object defining it by means of a severity, an error code and a parameters vector |
Method Summary | |
---|---|
it.eng.spago.base.CloneableObject |
cloneObject()
Ritorna un clone dell'oggetto stesso. |
java.lang.String |
getCategory()
|
int |
getCode()
Ritorna il codice dell'errore. |
java.util.Vector |
getParams()
Ritorna il vettore dei parametri. |
it.eng.spago.base.SourceBean |
getSourceBean()
Ritorna un SourceBean popolato con gli attributi dell'oggetto. |
private void |
init(java.lang.String severity,
int code,
java.util.Vector params,
java.lang.Object additionalInfo,
java.lang.String boundleName)
Questo metodo ha il compito di inizializzare lo stato dell'oggetto,viene invocato da tutti i costruttori di EMFUserError . |
Methods inherited from class it.eng.spago.error.EMFAbstractError |
---|
getAdditionalInfo, getDescription, getMessage, getSeverity, setAdditionalInfo, setDescription, setSeverity, toDocument, toDocument, toElement, 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 |
---|
public static final java.lang.String USER_ERROR_ELEMENT
public static final java.lang.String USER_ERROR_CODE
private int _code
private java.util.Vector _params
Constructor Detail |
---|
public EMFUserError(java.lang.String severity, int code)
EMFUserError
identificandolo tramite una severity e un
codice di errore .
severity
- severity dell'errore.code
- codice di errore.public EMFUserError(java.lang.String severity, int code, java.lang.String boundleName)
EMFUserError
object defining it by means of a severity and an error code
severity
- severity of the error.code
- error code.boundleName
- Name of the properties file containing codes and their valuespublic EMFUserError(java.lang.String severity, int code, java.util.Vector params)
EMFUserError
identificandolo tramite una severity ,un
codice di errore e una collezione di parametri che andranno a sostituire i caratteri % nella
stringa di descrizione.
severity
- severity dell'errore.code
- codice di errore.params
- vettore di parametri che verranno inseriti nella stringa di descrizione.public EMFUserError(java.lang.String severity, int code, java.util.Vector params, java.lang.String boundleName)
EMFUserError
object defining it by means of a severity, an error code and a parameters vector
severity
- severity of the error.code
- error code.params
- Vector of parameters for error description stringboundleName
- Name of the properties file containing codes and their valuespublic EMFUserError(java.lang.String severity, int code, java.util.Vector params, java.lang.Object additionalInfo)
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.
severity
- severity dell'errore.code
- codice di errore.params
- vettore di parametri che verranno inseriti nella stringa di descrizione.additionalInfo
- oggetto di qualsiasi natura.public EMFUserError(java.lang.String severity, int code, java.util.Vector params, java.lang.Object additionalInfo, java.lang.String boundleName)
EMFUserError
object defining it by means of a severity, an error code, a parameters vector
and an additional object
severity
- severity of the error.code
- error code.params
- Vector of parameters for error description stringadditionalInfo
- Additional object with error additional informationboundleName
- Name of the properties file containing codes and their valuespublic EMFUserError(EMFUserError userError)
EMFUserError
utilizzando lo stato del parametro
in input .
EMFUserError
- oggetto della stessa classe.Method Detail |
---|
public it.eng.spago.base.CloneableObject cloneObject()
cloneObject
in interface it.eng.spago.base.CloneableObject
CloneableObject
private void init(java.lang.String severity, int code, java.util.Vector params, java.lang.Object additionalInfo, java.lang.String boundleName)
EMFUserError
.
public int getCode()
public java.util.Vector getParams()
public it.eng.spago.base.SourceBean getSourceBean()
SourceBean
popolato con gli attributi dell'oggetto.
getSourceBean
in class it.eng.spago.error.EMFAbstractError
SourceBean
contenente gli attributi dell'oggetto.SourceBean
public java.lang.String getCategory()
getCategory
in class it.eng.spago.error.EMFAbstractError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |