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

  • Command
  • CommandCollection

Exceptions

  • CannotAddCommandException
  • NoSuchCommandException
  • Overview
  • Namespace
  • Class

Class NoSuchCommandException

Thrown when a command was not found.

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

Creates an exception for the given command name.

Creates an exception for the given command name.

Parameters

$name
The command name.
$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