clojure.lang
Class ExceptionInfo

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by clojure.lang.ExceptionInfo
All Implemented Interfaces:
Serializable

public class ExceptionInfo
extends RuntimeException

Exception that carries data (a map) as additional payload. Clojure programs that need richer semantics for exceptions should use this in lieu of defining project-specific exception classes.

See Also:
Serialized Form

Field Summary
 IPersistentMap data
           
 
Constructor Summary
ExceptionInfo(String s, IPersistentMap data)
           
ExceptionInfo(String s, IPersistentMap data, Throwable throwable)
           
 
Method Summary
 IPersistentMap getData()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public final IPersistentMap data
Constructor Detail

ExceptionInfo

public ExceptionInfo(String s,
                     IPersistentMap data)

ExceptionInfo

public ExceptionInfo(String s,
                     IPersistentMap data,
                     Throwable throwable)
Method Detail

getData

public IPersistentMap getData()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2012. All Rights Reserved.