Silk DI 0.6


se.jbee.inject
Class DIRuntimeException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by se.jbee.inject.DIRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DIRuntimeException.DependencyCycleException, DIRuntimeException.MoreFrequentExpiryException, DIRuntimeException.NoSuchFunctionException, DIRuntimeException.NoSuchResourceException

public class DIRuntimeException
extends RuntimeException

Base RuntimeException for all exceptions cennected to the dependency injection process itself.

Author:
Jan Bernitt (jan@jbee.se)
See Also:
Serialized Form

Nested Class Summary
static class DIRuntimeException.DependencyCycleException
          A dependency cycle so that injection is not possible.
static class DIRuntimeException.MoreFrequentExpiryException
          It has been tried to inject a shorter living instance into one that will most likely outlive the injected one.
static class DIRuntimeException.NoSuchFunctionException
          A method has been described by its return and Parameter Types (e.g. for use as factory or service) but such a method cannot be found.
static class DIRuntimeException.NoSuchResourceException
          An Injector couldn't find a Resource that matches a Dependency to resolve.
 
Constructor Summary
DIRuntimeException(String message)
           
 
Method Summary
static String describe(Injectron<?>... injectrons)
           
static String injectionStack(Dependency<?> dependency)
           
 String toString()
           
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DIRuntimeException

public DIRuntimeException(String message)
Method Detail

toString

public String toString()
Overrides:
toString in class Throwable

injectionStack

public static String injectionStack(Dependency<?> dependency)

describe

public static String describe(Injectron<?>... injectrons)

Silk DI 0.6