Class AmbiguousConstructorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
net.greghaines.jesque.utils.AmbiguousConstructorException
All Implemented Interfaces:
Serializable

public class AmbiguousConstructorException extends Exception
Thrown when there is more than one matching Constructor is found.
Author:
Greg Haines
See Also:
  • Constructor Details

    • AmbiguousConstructorException

      public AmbiguousConstructorException(String msg)
      Create a new AmbiguousConstructorException with only a message.
      Parameters:
      msg - the detail message to show
    • AmbiguousConstructorException

      public AmbiguousConstructorException(Class<?> type, Object[] args, Set<Constructor<?>> options)
      Create a new AmbiguousConstructorException with the possible Constructor options.
      Parameters:
      type - the type of Object under construction
      args - the arguments given to match on
      options - the possible matching Constructors
  • Method Details

    • getType

      public Class<?> getType()
      Returns:
      the Class object searched
    • getArgs

      public Object[] getArgs()
      Returns:
      the arguments that the Constructor needed to match
    • getOptions

      public Set<Constructor<?>> getOptions()
      Returns:
      the possible Constructors that matched