Skip to content
PHP Ecosystem
Explore

Exception

API reference › yii › base › Exception

classyii\base\Exception
ExtendsException
Since2.0
Sourceframework/base/Exception.php
11 subclasses

Exception represents a generic exception for all purposes.

For more details and usage information on Exception, see the guide article on handling errors.

MethodDescriptionDefined by
getName()Exception
public function getName(): string

Returns

string: The user-friendly name of this exception