Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • Args

Interfaces

  • ArgsParser
  • RawArgs

Exceptions

  • CannotAddArgumentException
  • CannotAddOptionException
  • CannotParseArgsException
  • NoSuchArgumentException
  • NoSuchOptionException
  • Overview
  • Namespace
  • Class

Class NoSuchArgumentException

Thrown when a non-existing argument is accessed.

Exception
Extended by RuntimeException
Extended by Webmozart\Console\Api\Args\NoSuchArgumentException
Namespace: Webmozart\Console\Api\Args
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Args/NoSuchArgumentException.php
Methods summary
public static static
# forArgumentName( string $name, integer $code = 0, Exception $cause = null )

Creates an exception for the given argument name.

Creates an exception for the given argument name.

Parameters

$name
The argument name.
$code
The exception code.
$cause
The exception that caused this exception.

Returns

static
The created exception.
public static static
# forPosition( integer $position, integer $code = 0, Exception $cause = null )

Creates an exception for the given argument position.

Creates an exception for the given argument position.

Parameters

$position
The argument position.
$code
The exception code.
$cause
The exception that caused this exception.

Returns

static
The created exception.
Methods inherited from Exception
__construct(), __toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
Webmozart Console API API documentation generated by ApiGen