org.jboss.weld.exceptions
Class AmbiguousResolutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.enterprise.inject.InjectionException
                  extended by javax.enterprise.inject.ResolutionException
                      extended by javax.enterprise.inject.AmbiguousResolutionException
                          extended by org.jboss.weld.exceptions.AmbiguousResolutionException
All Implemented Interfaces:
Serializable

public class AmbiguousResolutionException
extends javax.enterprise.inject.AmbiguousResolutionException

Provides message localization service for the AmbiguousResolutionException.

Author:
David Allen
See Also:
Serialized Form

Constructor Summary
AmbiguousResolutionException(E key, Object... args)
          Creates a new exception with the given localized message key and optional arguments for the message.
AmbiguousResolutionException(Throwable throwable)
          Creates a new exception with the given cause.
 
Method Summary
 String getLocalizedMessage()
           
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

AmbiguousResolutionException

public AmbiguousResolutionException(Throwable throwable)
Creates a new exception with the given cause.

Parameters:
throwable - The cause of the exception

AmbiguousResolutionException

public AmbiguousResolutionException(E key,
                                    Object... args)
Creates a new exception with the given localized message key and optional arguments for the message.

Type Parameters:
E - The enumeration type for the message keys
Parameters:
key - The localized message to use
args - Optional arguments to insert into the message
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2013 Seam Framework. All Rights Reserved.