-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionException.php
More file actions
42 lines (34 loc) · 1.02 KB
/
SessionException.php
File metadata and controls
42 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* This file is part of Blitz PHP framework.
*
* (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace BlitzPHP\Session;
use Exception;
class SessionException extends Exception
{
public static function missingDatabaseTable()
{
return new static(lang('Session.missingDatabaseTable'));
}
public static function invalidSavePath(?string $path = null)
{
return new static(lang('Session.invalidSavePath', [$path]));
}
public static function writeProtectedSavePath(?string $path = null)
{
return new static(lang('Session.writeProtectedSavePath', [$path]));
}
public static function emptySavepath()
{
return new static(lang('Session.emptySavePath'));
}
public static function invalidSavePathFormat(string $path)
{
return new static(lang('Session.invalidSavePathFormat', [$path]));
}
}