Package

org.rogach.scallop

exceptions

Permalink

package exceptions

Visibility
  1. Public
  2. All

Type Members

  1. case class ExcessArguments(args: Seq[String]) extends ScallopException with Product with Serializable

    Permalink

    Thrown when user provides excess arguments that can't be matched by trailing arg options

  2. case class Help(command: String) extends Exception with ScallopResult with Product with Serializable

    Permalink

    Thrown when user requested help output (via "--help")

  3. case class IdenticalOptionNames(mess: String) extends ScallopException with Product with Serializable

    Permalink

    Thrown when several options and/or trailing arguments have identical names in definition - making it impossible to distinguish between them.

  4. case class IllegalOptionParameters(mess: String) extends ScallopException with Product with Serializable

    Permalink

    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.
  5. case class IncompleteBuildException() extends ScallopException with Product with Serializable

    Permalink

    Thrown when user tried to extract the value of an option before the call to verify in ScallopConf.

  6. case class MajorInternalException() extends ScallopException with Product with Serializable

    Permalink

    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!

  7. case class OptionNameGuessingFailure() extends ScallopException with Product with Serializable

    Permalink

    Thrown when option guessing fails on one of the options.

  8. case class RequiredOptionNotFound(name: String) extends ScallopException with Product with Serializable

    Permalink

    Thrown when parser failed to find arguments to option (marked as 'required') in the input arguments.

  9. abstract class ScallopException extends Exception with ScallopResult

    Permalink

    Parent class for all exceptions thrown from this library.

  10. sealed trait ScallopResult extends AnyRef

    Permalink

    Parent trait for all not-positive results that can be resulted from this library (including help and exits)

  11. case class UnknownOption(optionName: String) extends ScallopException with Product with Serializable

    Permalink

    Thrown when user provides Scallop with unknown option name in the arguments or requests unknown option result from parser.

  12. case class ValidationFailure(mess: String) extends ScallopException with Product with Serializable

    Permalink

    Thrown when the validation failed on some option.

  13. case class WrongOptionFormat(optionName: String, args: String, msg: String) extends ScallopException with Product with Serializable

    Permalink

    Thrown when arguments to some option do not satisfy that option's value converter (it returns Left in such case).

  14. case class WrongTypeRequest(requested: scala.reflect.api.JavaUniverse.TypeTag[_], required: scala.reflect.api.JavaUniverse.TypeTag[_]) extends ScallopException with Product with Serializable

    Permalink

    Thrown when the user requests wrong type of option argument from Scallop.

Value Members

  1. object Exit

    Permalink

    Extractor object, for matching on both Help and Version results.

  2. object ScallopException extends Serializable

    Permalink

    Extractor object, for matching on all exceptions.

  3. object Version extends Exception with ScallopResult with Product with Serializable

    Permalink

    Thrown when user requested version printout (via "--version")

Ungrouped