com.caucho.config
Class ConfigException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.caucho.config.ConfigRuntimeException
                  extended by com.caucho.config.ConfigException
All Implemented Interfaces:
CompileException, DisplayableException, java.io.Serializable
Direct Known Subclasses:
JavaCompileException, LineConfigException

public class ConfigException
extends ConfigRuntimeException
implements CompileException, DisplayableException

Thrown by the various Builders

See Also:
Serialized Form

Constructor Summary
  ConfigException()
          Create a null exception
  ConfigException(java.lang.String msg)
          Creates an exception with a message
  ConfigException(java.lang.String msg, java.lang.Throwable e)
          Creates an exception with a message and throwable
protected ConfigException(java.lang.Throwable e)
          Creates an exception with a throwable
 
Method Summary
static java.lang.RuntimeException create(java.lang.reflect.Field field, java.lang.Throwable e)
           
static java.lang.RuntimeException create(java.lang.reflect.Method method, java.lang.String msg)
           
static java.lang.RuntimeException create(java.lang.reflect.Method method, java.lang.String msg, java.lang.Throwable e)
           
static java.lang.RuntimeException create(java.lang.reflect.Method method, java.lang.Throwable e)
           
static java.lang.RuntimeException create(java.lang.String location, java.lang.Throwable e)
           
static java.lang.RuntimeException create(java.lang.Throwable e)
           
static ConfigException createConfig(java.lang.Throwable e)
           
static java.lang.RuntimeException createLine(java.lang.String line, java.lang.Throwable e)
           
protected static java.lang.String getMessage(java.lang.Throwable e)
           
static java.lang.String loc(java.lang.reflect.Field field)
           
static java.lang.String loc(java.lang.reflect.Method method)
           
 void print(java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigException

public ConfigException()
Create a null exception


ConfigException

public ConfigException(java.lang.String msg)
Creates an exception with a message


ConfigException

public ConfigException(java.lang.String msg,
                       java.lang.Throwable e)
Creates an exception with a message and throwable


ConfigException

protected ConfigException(java.lang.Throwable e)
Creates an exception with a throwable

Method Detail

getMessage

protected static java.lang.String getMessage(java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.String location,
                                                java.lang.Throwable e)

createLine

public static java.lang.RuntimeException createLine(java.lang.String line,
                                                    java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.reflect.Field field,
                                                java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.reflect.Method method,
                                                java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.reflect.Method method,
                                                java.lang.String msg,
                                                java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.reflect.Method method,
                                                java.lang.String msg)

createConfig

public static ConfigException createConfig(java.lang.Throwable e)

create

public static java.lang.RuntimeException create(java.lang.Throwable e)

print

public void print(java.io.PrintWriter out)
Specified by:
print in interface DisplayableException
Overrides:
print in class ConfigRuntimeException

loc

public static java.lang.String loc(java.lang.reflect.Field field)

loc

public static java.lang.String loc(java.lang.reflect.Method method)