Skip to content

Commit 53fccd5

Browse files
committed
feat: add generate exception method.
1 parent 7b83fad commit 53fccd5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

system/Exceptions/DownloadException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ public static function forCannotSetCache()
2828
return new static(lang('HTTP.cannotSetCache'));
2929
}
3030

31+
public static function forCannotSetStatusCode(int $code, string $reason)
32+
{
33+
return new static(lang('HTTP.cannotSetStatusCode', [$code, $reason]));
34+
}
3135
}

0 commit comments

Comments
 (0)