PHP Class Exceptions\Data\NotFoundException
If the code in context is a service provider that queries a database, this would be the right exception to throw
and listen for. The controller on the other hand would catch this and throw a NotFoundException from the Http
namespace which would be converted to a standardized message in the front controller.
Exibir arquivo
Open project: crazycodr/standard-exceptions
Public Methods
Method |
Description |
|
__construct ( $message = 'Data requested for cannot be found in the data source.', $code, $previous = null ) |
|
|
Method Details
__construct()
public method
public __construct ( $message = 'Data requested for cannot be found in the data source.', $code, $previous = null ) |