Assert
Provides runtime assertions
Loading...
Searching...
No Matches
Wikimedia\Assert\ParameterAssertionException Class Reference

Exception indicating that an parameter assertion failed. More...

+ Inheritance diagram for Wikimedia\Assert\ParameterAssertionException:
+ Collaboration diagram for Wikimedia\Assert\ParameterAssertionException:

Public Member Functions

 __construct ( $parameterName, $description)
 
 getParameterName ()
 

Detailed Description

Exception indicating that an parameter assertion failed.

This generally means a disagreement between the caller and the implementation of a function.

Since
0.1.0

@license MIT

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Assert\ParameterAssertionException::__construct ( $parameterName,
$description )
Parameters
string$parameterName
string$description
Exceptions
ParameterTypeException

Reimplemented in Wikimedia\Assert\ParameterElementTypeException, Wikimedia\Assert\ParameterTypeException, and Wikimedia\Assert\ParameterKeyTypeException.

Member Function Documentation

◆ getParameterName()

Wikimedia\Assert\ParameterAssertionException::getParameterName ( )
Returns
string

The documentation for this class was generated from the following file: