| 1 | <?php |
||
| 18 | class FailedToSavePost extends \RuntimeException implements Exception { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Creat a new instance of the exception if we failed to save a post. |
||
| 22 | * |
||
| 23 | * @since %VERSION% |
||
| 24 | * |
||
| 25 | * @param string $type The post type that failed to save. |
||
| 26 | * @param string $reason The reason the save failed. |
||
| 27 | * |
||
| 28 | * @return static |
||
| 29 | */ |
||
| 30 | public static function from_type( $type, $reason ) { |
||
| 35 | } |
||
| 36 |