by thecrazycodr
http://www.wordclouds.com/
EmptyException
FullException
KeyAlreadyExistsException
KeyNotFoundException
ReadOnlyArrayException
ReadOnlyArrayItemException
FormatException
IntegrityException
NotFoundException
TypeException
ValidationException
BadRequestException
ConflictException
ForbiddenException
MethodNotAllowedException
NotAcceptableException
NotFoundException
RequestedRangeNotSatisfiableException
RequestEntityTooLargeException
UnauthorizedException
UnprocessableEntityException
UnsupportedMediaTypeException
InternalServerErrorException
NotImplementedException
ServiceUnavailableException
DirectoryNotFoundException
DirectoryNotReadableException
DirectoryNotWritableException
FileNotFoundException
FileNotReadableException
FileNotWritableException
NotADirectoryException
NotAFileException
ConnectionLostException
ConnectionRefusedException
UnexpectedResponseException
UnknownHostException
InvalidOperationException
NotImplementedException
UnexpectedException
InvalidDataException
NotFoundException
Library provides interfaces that tag and convey similar meaning through many different exceptions.
They allow you as a dev to catch a meaning instead of a context.
try {
$storage->getProducts();
}catch(FileNotFoundException $ex){
//The file for $storage
//engine cannot be found
}try {
$storage->getProducts();
}catch(DataNotFoundException $ex){
//The data for $storage
//engine cannot be found
}Or
composer require crazycodr/standard-exceptionsclass HomeController {
public function index(){
throw new Exceptions\Operation\NotImplementedException();
}
}thecrazycodr@gmail.com