uk.org.bryanray.testtoys.util
Class ExceptionUtil

java.lang.Object
  extended by uk.org.bryanray.testtoys.util.ExceptionUtil

public class ExceptionUtil
extends java.lang.Object

Project:
TestDataLoader
Filename:
ExceptionUtil.java
Creation Date:
26 May 2008

Author:
Bryan Ray

Constructor Summary
ExceptionUtil()
           
 
Method Summary
static java.lang.RuntimeException convertException(java.lang.Exception exception)
          If the supplied exception is not a RuntimeException, the exception is converted to a RuntimeException, otherwise the exception is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtil

public ExceptionUtil()
Method Detail

convertException

public static java.lang.RuntimeException convertException(java.lang.Exception exception)
If the supplied exception is not a RuntimeException, the exception is converted to a RuntimeException, otherwise the exception is returned.

Parameters:
exception - The exception to convert to a RuntimeException.


Copyright © 2008. All Rights Reserved.