Skip to content

Commit c57ed44

Browse files
committed
feat: handle exceptions
#12
1 parent e6a1196 commit c57ed44

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
* This file is part of https://github.com/josantonius/php-session repository.
5+
*
6+
* (c) Josantonius <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Josantonius\Session\Exceptions;
13+
14+
/**
15+
* You can use an exception and error handler with this library.
16+
*
17+
* @link https://github.com/josantonius/php-errorhandler
18+
*/
19+
class SessionException extends \Exception
20+
{
21+
public function __construct(string $message = 'Unknown error')
22+
{
23+
parent::__construct(rtrim($message, '.') . '.');
24+
}
25+
}

0 commit comments

Comments
 (0)