org.gvsig.tools.exception
Interface IBaseException

All Known Implementing Classes:
AddDefinitionException, BaseException, BaseRuntimeException, CallableException, CantFindDefinitionInStreamException, DefaultDynClass.CheckDynClassListException, DefaultDynClass.CheckDynClassListException.CheckDynClassException, DefaultDynField.CheckDynFieldListException, DefaultDynField.CheckDynFieldListException.CheckDynFieldException, DefaultDynObject.CoerceValueException, DuplicateDynClassException, DuplicatePersistentDefinitionException, DynClassImportHelper.CantLocateClassException, DynClassImportHelper.CantLocateDynClassException, DynClassImportHelper.DuplicateDynClassException, DynClassImportHelper.ImportDynClassesException, DynClassImportHelper.IncompatibleAttributeValueException, DynClassImportHelper.InvalidFieldTypeException, DynClassImportHelper.NeedTagOrAttributeException, DynClassImportHelper.ParseCoerceException, DynClassImportHelper.UnexpectedTagOrAttributeException, DynClassImportHelper.WrongVersionException, DynClassNotFoundException, DynFieldIsNotAContainerException, DynFieldNotFoundException, DynFieldRequiredValueException, DynFieldValidateException, DynMethodException, DynMethodIllegalCodeException, DynMethodNotSupportedException, DynObjectException, DynObjectFieldSubtypeRequiredValueException, DynObjectRuntimeException, DynObjectValidateException, EvaluatorException, FieldNotDeclaredException, IllegalDynMethodException, IllegalDynMethodInvocationException, LibraryException, ListBaseException, LocatorException, LocatorReferenceException, NotRegisteredException, NotSupportedOperationException, NotYetImplemented, ObjectNotFoundException, OperationException, OperationNotSupportedException, ParametersException, PersistenceClassNotRegistered, PersistenceCreateException, PersistenceDomainNotRegisterdException, PersistenceDuplicateDomainNameException, PersistenceEndOfDocumentException, PersistenceException, PersistenceIdentifierException, PersistenceIDNotLoadedException, PersistenceIllegalStateTheClassNameNotSetException, PersistenceInvalidDomainNameException, PersistenceInvalidPropertyNameException, PersistenceInvalidTypeForPropertyException, PersistenceInvalidValidateModeException, PersistenceInvalidValueException, PersistenceMissingAttributeException, PersistenceMissingEntryInZIPException, PersistenceMissingTagException, PersistenceParserException, PersistenceReferenceIDConflitException, PersistenceRuntimeException, PersistenceTypeNotSupportedException, PersistenceUnknowTypeException, PersistenceUnssuportedDefinitionTypeException, PersistenceUnsuportedMapKeyTypeException, PersistenceValidateExceptions, PersistenceValidateMissingDefinitionException, PersistenceValueNotFoundException, PersistenceWriteExeption, RedoException, ReferenceNotRegisteredException, ServiceException, ServiceInitializationException, ServiceParametersValidationException, UndoException, VisitCanceledException, ZipXMLPersistenceManager.CantGenerateXMLSchemaForDefinitionException, ZipXMLPersistenceManager.CantGenerateXMLSchemaForDomainException, ZipXMLPersistenceManager.CantSaveStateException

public interface IBaseException

Author:
Equipo de desarrollo de gvSIG

Method Summary
 long getCode()
           
 String getFormatString()
           
 String getLocalizedMessage()
          Returns the translated message that describes the exception.
 String getLocalizedMessage(ExceptionTranslator translator, int indent)
          Returns the translated message that describes the exception with indentation.
 String getLocalizedMessageStack()
          Crosses the exceptions chained through cause to conform the compound message in the corresponding language.
 String getLocalizedMessageStack(ExceptionTranslator translator, int indent)
          Crosses the exceptions chained through cause to conform the compound message in the corresponding language.
 String getMessage()
          Returns the message that describes the exception.
 String getMessage(int indent)
          Returns the message that describes the exception, with indentation.
 String getMessageKey()
           
 String getMessageStack()
          Crosses the exceptions chained through cause to conform the message.
 String getMessageStack(int indent)
          Crosses the exceptions chained through cause to conform the compound message with indentation.
 Iterator iterator()
           
 

Method Detail

getMessage

String getMessage()
Returns the message that describes the exception.

Returns:
The message.

getMessage

String getMessage(int indent)
Returns the message that describes the exception, with indentation.

Parameters:
indent - Quantity of blanks to insert at the start of the message.
Returns:
The message with indentation.

getLocalizedMessage

String getLocalizedMessage()
Returns the translated message that describes the exception.

Returns:
The translated message with indentation.

getLocalizedMessage

String getLocalizedMessage(ExceptionTranslator translator,
                           int indent)
Returns the translated message that describes the exception with indentation.

Parameters:
translator - Instance of a class that fulfills the IExceptionTranslator interface. His method "getText" takes charge returning the expression, correspondent to the key that delivers him, translated into the configured language.
indent - Quantity of blanks to insert at the start of the message.
Returns:
The translated message with indentation.

getMessageStack

String getMessageStack()
Crosses the exceptions chained through cause to conform the message.

Returns:
The compound message with all the messages of the stack of exceptions.

getMessageStack

String getMessageStack(int indent)
Crosses the exceptions chained through cause to conform the compound message with indentation.

Parameters:
indent - Quantity of blanks to insert at the start of the messages.
Returns:
The compound message with all the messages of the stack of exceptions.

getLocalizedMessageStack

String getLocalizedMessageStack()
Crosses the exceptions chained through cause to conform the compound message in the corresponding language.

Returns:
The translated compound message.

getLocalizedMessageStack

String getLocalizedMessageStack(ExceptionTranslator translator,
                                int indent)
Crosses the exceptions chained through cause to conform the compound message in the corresponding language.

Parameters:
translator - Instance of a class that fulfills the IExceptionTranslator interface. His method "getText" takes charge returning the expression, correspondent to the key that delivers him, translated into the configured language.
indent - Quantity of blanks to insert at the start of the messages.
Returns:
The translated message with indentation.

getCode

long getCode()
Returns:
The exception's code.

getFormatString

String getFormatString()
Returns:
The format string.

getMessageKey

String getMessageKey()
Returns:
The message key associated to the exception.

iterator

Iterator iterator()
Returns:
A iterator for the chained exceptions.


Copyright © 2004-2011 gvSIG. All Rights Reserved.