Created
December 11, 2012 19:47
-
-
Save oaass/4261482 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DatabaseException extends Exception | |
{ | |
public function missingDriver() | |
{ | |
print 'No such driver was found'; | |
} | |
public function missingInterface($class, $interface) | |
{ | |
print "Your class '{$class}' must implement '{$interface}'"; | |
} | |
public function configuration() | |
{ | |
print 'You have an error in your configuration'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment