public class InjectionException extends Exception
A third, less common issue arises when constructors obtain a handle to the Tang Injector that created them, and then attempt to modify its state. Doing so is illegal, and results in a runtime exception that Tang converts into an InjectionException. Code involved in such exceptions is typically attempting to perform cyclic object injections, and should use an InjectionFuture instead.
Constructor and Description |
---|
InjectionException(String msg) |
InjectionException(String msg,
Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InjectionException(String msg, Throwable cause)
public InjectionException(String msg)
Copyright © 2016 The Apache Software Foundation. All rights reserved.