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

  • ResolvedCommand

Interfaces

  • CommandResolver

Exceptions

  • CannotResolveCommandException
  • Overview
  • Namespace
  • Class

Class CannotResolveCommandException

Thrown when a command cannot be resolved.

Exception
Extended by RuntimeException
Extended by Webmozart\Console\Api\Resolver\CannotResolveCommandException
Namespace: Webmozart\Console\Api\Resolver
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Resolver/CannotResolveCommandException.php
Methods summary
public static static
# nameNotFound( string $commandName, Webmozart\Console\Api\Command\CommandCollection $commands, Exception $cause = null )

Creates an exception for the code Webmozart\Console\Api\Resolver\CannotResolveCommandException::NAME_NOT_FOUND.

Creates an exception for the code Webmozart\Console\Api\Resolver\CannotResolveCommandException::NAME_NOT_FOUND.

Suggested alternatives are searched in the passed commands.

Parameters

$commandName
The command name that was not found.
$commands

A list of available commands that is searched for similar names.

$cause

The exception that caused this exception.

Returns

static
The created exception.
public static static
# noDefaultCommand( Exception $cause = null )

Creates an exception for the code Webmozart\Console\Api\Resolver\CannotResolveCommandException::NO_DEFAULT_COMMAND.

Creates an exception for the code Webmozart\Console\Api\Resolver\CannotResolveCommandException::NO_DEFAULT_COMMAND.

Parameters

$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()
Constants summary
integer NAME_NOT_FOUND

Code: The passed command name was not found.

Code: The passed command name was not found.

# 1
integer NO_DEFAULT_COMMAND

Code: No command was passed and no default was configured.

Code: No command was passed and no default was configured.

# 2
Properties inherited from Exception
$code, $file, $line, $message
Webmozart Console API API documentation generated by ApiGen