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 CannotAddOptionException

Thrown when an option cannot be added.

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

Creates an exception for a duplicate option.

Creates an exception for a duplicate option.

Parameters

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