Add class MD_JAIL for forcing coders to set time and memory limits
This commit is contained in:
1 parent
aa67de1e54
commit
6a6f71cf10
2 files changed
+177
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?PHP
|
||||
declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Exception thrown by MDJail if a required security option has not been set.
|
||||
*/
|
||||
final class MDJailSecurityOptionNotSetException extends Exception {
|
||||
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'A security option of MD_JAIL has not been set: <b>' . $this->getMessage() . '</b>).';
|
||||
return $errorMsg;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user