tecgraf.javautils.xml.conversion.exception
Class XMLConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by tecgraf.javautils.xml.conversion.exception.XMLConversionException
All Implemented Interfaces:
Serializable

public class XMLConversionException
extends Exception

A classe XMLConversionException implementa as possíveis situações de erro encontradas durante o processo de conversão de documentos XML usando as classes XMLConverter e subclasses de AbstractXMLConversion.

As diferentes situações de erro são indicadas pelo tipo associado à exceção. TODO pode ser interessante recebermos mais dados em alguns casos

See Also:
Serialized Form

Nested Class Summary
static class XMLConversionException.XMLConversionExceptionType
          Códigos de erro para a exceção.
 
Constructor Summary
XMLConversionException(XMLConversionException.XMLConversionExceptionType type)
          Cria uma exceção.
XMLConversionException(XMLConversionException.XMLConversionExceptionType type, String details)
          Cria uma exceção com uma mensagem específica.
XMLConversionException(XMLConversionException.XMLConversionExceptionType type, String details, Throwable original)
          Cria uma exceção encapsulando outra, com uma mensagem específica.
XMLConversionException(XMLConversionException.XMLConversionExceptionType type, Throwable original)
          Cria uma exceção encapsulando outra.
 
Method Summary
 XMLConversionException.XMLConversionExceptionType getType()
           
 String toString()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLConversionException

public XMLConversionException(XMLConversionException.XMLConversionExceptionType type)
Cria uma exceção.

Parameters:
type - - tipo da exceção

XMLConversionException

public XMLConversionException(XMLConversionException.XMLConversionExceptionType type,
                              String details)
Cria uma exceção com uma mensagem específica.

Parameters:
type - tipo da exceção
details - mensagem

XMLConversionException

public XMLConversionException(XMLConversionException.XMLConversionExceptionType type,
                              Throwable original)
Cria uma exceção encapsulando outra.

Parameters:
type - tipo da exceção
original - exceção original

XMLConversionException

public XMLConversionException(XMLConversionException.XMLConversionExceptionType type,
                              String details,
                              Throwable original)
Cria uma exceção encapsulando outra, com uma mensagem específica.

Parameters:
type - tipo da exceção
details - mensagem
original - exceção original
Method Detail

getType

public XMLConversionException.XMLConversionExceptionType getType()
Returns:
o tipo da exceção

toString

public String toString()

Overrides:
toString in class Throwable


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.