001    
002    package railo.runtime.converter;
003    
004    import railo.runtime.op.Caster;
005    
006    
007    /**
008     * Exception throwed by a Converter
009     */
010    public final class ConverterException extends Exception {
011        
012            /**
013             * constructor of the Exception
014             * @param message
015             */
016            public ConverterException(String message) {
017                    super(message);
018            }
019    
020            /**
021             * constructor takes a Exception
022             * @param e exception to encapsulate
023             */
024            public ConverterException(Exception e) {
025                    super(Caster.toClassName(e)+":"+e.getMessage());
026            setStackTrace(e.getStackTrace());
027            }
028    }