Class AmbiguousConstructorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.greghaines.jesque.utils.AmbiguousConstructorException
- All Implemented Interfaces:
Serializable
Thrown when there is more than one matching Constructor is found.
- Author:
- Greg Haines
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousConstructorException(Class<?> type, Object[] args, Set<Constructor<?>> options) Create a new AmbiguousConstructorException with the possible Constructor options.Create a new AmbiguousConstructorException with only a message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousConstructorException
Create a new AmbiguousConstructorException with only a message.- Parameters:
msg- the detail message to show
-
AmbiguousConstructorException
Create a new AmbiguousConstructorException with the possible Constructor options.- Parameters:
type- the type of Object under constructionargs- the arguments given to match onoptions- the possible matching Constructors
-
-
Method Details
-
getType
- Returns:
- the Class object searched
-
getArgs
- Returns:
- the arguments that the Constructor needed to match
-
getOptions
- Returns:
- the possible Constructors that matched
-