Added HTTP exception classes.
This commit is contained in:
		
							
								
								
									
										14
									
								
								src/HPCloud/Exception.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/HPCloud/Exception.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @file | ||||
|  * The parent exception class for HPCloud. | ||||
|  */ | ||||
| namespace HPCloud; | ||||
| /** | ||||
|  * The top-level HPCloud exception. | ||||
|  * | ||||
|  * In most cases, the library will throw a more finely | ||||
|  * grained exception, but all exceptions thrown directly | ||||
|  * by HPCloud will be an instance of this exception. | ||||
|  */ | ||||
| class Exception extends \Exception {} | ||||
							
								
								
									
										9
									
								
								src/HPCloud/Transport/AuthorizationException.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/HPCloud/Transport/AuthorizationException.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @file | ||||
|  */ | ||||
| namespace HPCloud\Transport; | ||||
| /** | ||||
|  * Represents an HTTP 401. | ||||
|  */ | ||||
| class AuthorizationException extends \HPCloud\Exception {} | ||||
							
								
								
									
										9
									
								
								src/HPCloud/Transport/FileNotFoundException.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/HPCloud/Transport/FileNotFoundException.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @file | ||||
|  */ | ||||
| namespace HPCloud\Transport; | ||||
| /** | ||||
|  * Represents an HTTP File Not Found error. | ||||
|  */ | ||||
| class FileNotFoundException extends \HPCloud\Exception {} | ||||
							
								
								
									
										9
									
								
								src/HPCloud/Transport/ServerException.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/HPCloud/Transport/ServerException.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @file | ||||
|  */ | ||||
| namespace HPCloud\Transport; | ||||
| /** | ||||
|  * Represents an HTTP 500 error. | ||||
|  */ | ||||
| class ServerException extends \HPCloud\Exception {} | ||||
		Reference in New Issue
	
	Block a user
	 Matt Butcher
					Matt Butcher