Method | Description | |
---|---|---|
forArgumentName ( string $name, integer $code, Exception $cause = null ) : static | Creates an exception for the given argument name. | |
forPosition ( integer $position, integer $code, Exception $cause = null ) : static | Creates an exception for the given argument position. |
public static forArgumentName ( string $name, integer $code, Exception $cause = null ) : static | ||
$name | string | The argument name. |
$code | integer | The exception code. |
$cause | Exception | The exception that caused this exception. |
return | static | The created exception. |
public static forPosition ( integer $position, integer $code, Exception $cause = null ) : static | ||
$position | integer | The argument position. |
$code | integer | The exception code. |
$cause | Exception | The exception that caused this exception. |
return | static | The created exception. |