|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ConverterException.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Copyright (C) The Spice Group. All rights reserved.
|
|
| 3 |
*
|
|
| 4 |
* This software is published under the terms of the Spice
|
|
| 5 |
* Software License version 1.1, a copy of which has been included
|
|
| 6 |
* with this distribution in the LICENSE.txt file.
|
|
| 7 |
*/
|
|
| 8 |
package org.codehaus.spice.converter;
|
|
| 9 |
|
|
| 10 |
/**
|
|
| 11 |
* ConverterException thrown when a problem occurs during convertion etc.
|
|
| 12 |
*
|
|
| 13 |
* @author Peter Donald
|
|
| 14 |
* @version $Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $
|
|
| 15 |
*/
|
|
| 16 |
public class ConverterException |
|
| 17 |
extends Exception
|
|
| 18 |
{
|
|
| 19 |
/**
|
|
| 20 |
* The Throwable that caused this exception to be thrown.
|
|
| 21 |
*/
|
|
| 22 |
private final Throwable m_throwable;
|
|
| 23 |
|
|
| 24 |
/**
|
|
| 25 |
* Basic constructor with a message
|
|
| 26 |
*
|
|
| 27 |
* @param message the message
|
|
| 28 |
*/
|
|
| 29 | 0 |
public ConverterException( final String message )
|
| 30 |
{
|
|
| 31 | 0 |
this( message, null ); |
| 32 |
} |
|
| 33 |
|
|
| 34 |
/**
|
|
| 35 |
* Constructor that builds cascade so that other exception information can be retained.
|
|
| 36 |
*
|
|
| 37 |
* @param message the message
|
|
| 38 |
* @param throwable the throwable
|
|
| 39 |
*/
|
|
| 40 | 0 |
public ConverterException( final String message, final Throwable throwable )
|
| 41 |
{
|
|
| 42 | 0 |
super( message );
|
| 43 | 0 |
m_throwable = throwable; |
| 44 |
} |
|
| 45 |
|
|
| 46 |
/**
|
|
| 47 |
* Retrieve root cause of the exception.
|
|
| 48 |
*
|
|
| 49 |
* @return the root cause
|
|
| 50 |
*/
|
|
| 51 | 0 |
public final Throwable getCause()
|
| 52 |
{
|
|
| 53 | 0 |
return m_throwable;
|
| 54 |
} |
|
| 55 |
} |
|
| 56 |
|
|
| 57 |
|
|
||||||||||