package exceptions
- Alphabetic
- Public
- All
Type Members
-
case class
ExcessArguments
(args: Seq[String]) extends ScallopException with Product with Serializable
Thrown when user provides excess arguments that can't be matched by trailing arg options
- case class GenericScallopException (msg: String) extends ScallopException with Product with Serializable
-
case class
Help
(command: String) extends Exception with ScallopResult with Product with Serializable
Thrown when user requested help output (via "--help")
-
case class
IdenticalOptionNames
(mess: String) extends ScallopException with Product with Serializable
Thrown when several options and/or trailing arguments have identical names in definition - making it impossible to distinguish between them.
-
case class
IllegalOptionParameters
(mess: String) extends ScallopException with Product with Serializable
Thrown when user tried to create an option with some illegal parameters
Thrown when user tried to create an option with some illegal parameters
- for example, with digit as the first character in opton name.
-
case class
IncompleteBuildException
() extends ScallopException with Product with Serializable
Thrown when user tried to extract the value of an option before the call to verify in ScallopConf.
-
case class
MajorInternalException
() extends ScallopException with Product with Serializable
This is a special case of exception - the one you should never see.
This is a special case of exception - the one you should never see. If you actually saw it, there is a sure bug lurking somewhere. In such cases, please file a bug on project page!
-
case class
OptionNameGuessingFailure
() extends ScallopException with Product with Serializable
Thrown when option guessing fails on one of the options.
-
case class
RequiredOptionNotFound
(name: String) extends ScallopException with Product with Serializable
Thrown when parser failed to find arguments to option (marked as 'required') in the input arguments.
-
abstract
class
ScallopException
extends Exception with ScallopResult
Parent class for all exceptions thrown from this library.
-
sealed
trait
ScallopResult
extends AnyRef
Parent trait for all not-positive results that can be resulted from this library (including help and exits)
-
case class
UnknownOption
(optionName: String) extends ScallopException with Product with Serializable
Thrown when user provides Scallop with unknown option name in the arguments or requests unknown option result from parser.
-
case class
ValidationFailure
(mess: String) extends ScallopException with Product with Serializable
Thrown when the validation failed on some option.
-
case class
WrongOptionFormat
(optionName: String, args: String, msg: String) extends ScallopException with Product with Serializable
Thrown when arguments to some option do not satisfy that option's value converter (it returns Left in such case).
-
case class
WrongTypeRequest
(requested: scala.reflect.api.JavaUniverse.TypeTag[_], required: scala.reflect.api.JavaUniverse.TypeTag[_]) extends ScallopException with Product with Serializable
Thrown when the user requests wrong type of option argument from Scallop.
Value Members
-
object
Exit
Extractor object, for matching on both Help and Version results.
-
object
ScallopException
extends Serializable
Extractor object, for matching on all exceptions.
-
object
Version
extends Exception with ScallopResult with Product with Serializable
Thrown when user requested version printout (via "--version")