org.glassfish.common.util.admin
Class UnacceptableValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.glassfish.common.util.admin.UnacceptableValueException
All Implemented Interfaces:
Serializable

public class UnacceptableValueException
extends RuntimeException

HK2 has an Injection Manager. We make an instance of this Injection Manager and override some methods. Now we throw an Exception out. If it is a ComponentException and if the field is optional -- HK2 swallows the Exception. So, instead, we throw this RuntimeException and HK2 will propagate it back as a wrapped Exception. Then we look at the cause and pull out the real error message.

Author:
bnevins
See Also:
Serialized Form

Constructor Summary
UnacceptableValueException(String msg)
           
 
Method Summary
 
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

UnacceptableValueException

public UnacceptableValueException(String msg)


Copyright © 2012 GlassFish Community. All Rights Reserved.