com.mysql.management.util
Class Exceptions

java.lang.Object
  extended by com.mysql.management.util.Exceptions
Direct Known Subclasses:
Exceptions.Block, Exceptions.SQLBlock, Exceptions.StringBlock, Exceptions.VoidBlock

public class Exceptions
extends java.lang.Object

Version:
$Id: Exceptions.java,v 1.9 2005/10/25 19:11:16 eherman Exp $
Author:
Eric Herman

Nested Class Summary
static class Exceptions.Block
           
static class Exceptions.SQLBlock
           
static class Exceptions.StringBlock
           
static class Exceptions.VoidBlock
           
 
Constructor Summary
Exceptions()
           
Exceptions(java.io.PrintStream log)
           
 
Method Summary
protected  void log(java.lang.Exception e)
          This is final simply as a hint to the compiler, it may be un-finalized safely.
 java.lang.RuntimeException toRuntime(java.lang.Exception e)
          Convienence funciton to convert checked exceptions to RuntimeException
 java.sql.SQLException toSQLException(java.lang.Exception e)
          This is final simply as a hint to the compiler, it may be un-finalized safely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exceptions

public Exceptions()

Exceptions

public Exceptions(java.io.PrintStream log)
Method Detail

toRuntime

public final java.lang.RuntimeException toRuntime(java.lang.Exception e)
Convienence funciton to convert checked exceptions to RuntimeException

Parameters:
e - java.lang.Exception
Returns:
a RuntimeException if e is already a Runtime Exception, e is simply returned otherwise e is wrapped by a RuntimeException: new WrappedException(e) This is final simply as a hint to the compiler, it may be un-finalized safely.

toSQLException

public final java.sql.SQLException toSQLException(java.lang.Exception e)
This is final simply as a hint to the compiler, it may be un-finalized safely.


log

protected final void log(java.lang.Exception e)
This is final simply as a hint to the compiler, it may be un-finalized safely.



Copyright © 2004-2011. All Rights Reserved.