Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
webbasics
Commits
b646dfc0
Commit
b646dfc0
authored
Oct 06, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FormattedException to base file
parent
a43b0b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
base.php
base.php
+18
-1
No files found.
base.php
View file @
b646dfc0
...
@@ -66,12 +66,29 @@ abstract class Base {
...
@@ -66,12 +66,29 @@ abstract class Base {
}
}
}
}
/**
* Exception with sprintf()-like constructor for error message formatting.
*
* @package WebBasics
* @link http://php.net/sprintf
*/
class
FormattedException
extends
\Exception
{
/**
* Constructor, sets a formatted error message.
* @link http://php.net/sprintf
*/
function
__construct
()
{
$args
=
func_get_args
();
$this
->
message
=
call_user_func_array
(
'sprintf'
,
$args
);
}
}
/**
/**
* Exception, thrown when a required file does not exist.
* Exception, thrown when a required file does not exist.
*
*
* @package WebBasics
* @package WebBasics
*/
*/
class
FileNotFoundError
extends
\
Runtime
Exception
{
class
FileNotFoundError
extends
\Exception
{
/**
/**
* Create a new FileNotFoundError instance.
* Create a new FileNotFoundError instance.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment