Compare commits
	
		
			2 Commits
		
	
	
		
			5d224bcc02
			...
			3e4374b0b9
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3e4374b0b9 | |||
| 7d3ec0a75f | 
| @@ -4,9 +4,16 @@ declare(strict_types=1); | ||||
|  | ||||
| namespace Potter\Throwable; | ||||
|  | ||||
| use \Throwable as BaseThrowable; | ||||
| use \Exception; | ||||
|  | ||||
| abstract class AbstractThrowable extends Exception implements ThrowableInterface | ||||
| { | ||||
|  | ||||
|     abstract public function getMessage(): string; | ||||
|     abstract public function getCode(): int; | ||||
|     abstract public function getFile(): string; | ||||
|     abstract public function getLine(): int; | ||||
|     abstract public function getTrace(): array; | ||||
|     abstract public function getTraceAsString(): string; | ||||
|     abstract public function getPrevious(): ?BaseThrowable; | ||||
| } | ||||
|   | ||||
							
								
								
									
										10
									
								
								src/Potter/Throwable/Throwable.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/Potter/Throwable/Throwable.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace Potter\Throwable; | ||||
|  | ||||
| abstract class Throwable extends AbstractThrowable | ||||
| { | ||||
|  | ||||
| } | ||||
| @@ -4,9 +4,16 @@ declare(strict_types=1); | ||||
|  | ||||
| namespace Potter\Throwable; | ||||
|  | ||||
| use \Throwable as BaseThrowable; | ||||
| use \Potter\Stringable\StringableInterface; | ||||
|  | ||||
| interface ThrowableInterface extends StringableInterface | ||||
| { | ||||
|  | ||||
| } | ||||
|     public function getMessage(): string; | ||||
|     public function getCode(): int; | ||||
|     public function getFile(): string; | ||||
|     public function getLine(): int; | ||||
|     public function getTrace(): array; | ||||
|     public function getTraceAsString(): string; | ||||
|     public function getPrevious(): ?BaseThrowable; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user