With that configuration in place, whenever an error occurs, Yii will execute the "error" acction of the "Site" controller. That action should look for an exception and, if present, render the proper view file, passing along the exception:
With that configuration in place, whenever an error occurs, Yii will execute the "error" action of the "Site" controller. That action should look for an exception and, if present, render the proper view file, passing along the exception:
```php
publicfunctionactionError()
...
...
@@ -65,4 +65,4 @@ After associating the class with the error as in the above, define the `views/si
-`$message`: the error message
-`$exception`: the exception being handled
The `$exception` object will have the same properties outlined above.
\ No newline at end of file
The `$exception` object will have the same properties outlined above.