Skip to content

Instantly share code, notes, and snippets.

@oaass
Created December 11, 2012 19:47
Show Gist options
  • Save oaass/4261482 to your computer and use it in GitHub Desktop.
Save oaass/4261482 to your computer and use it in GitHub Desktop.
<?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