mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 23:36:20 +00:00
35 lines
953 B
PHP
35 lines
953 B
PHP
|
<?php
|
||
|
|
||
|
class UOJProblemConfException extends Exception {
|
||
|
public function __construct($message) {
|
||
|
parent::__construct("<strong>problem.conf</strong> : $message");
|
||
|
}
|
||
|
}
|
||
|
class UOJFileNotFoundException extends Exception {
|
||
|
public function __construct($file_name) {
|
||
|
parent::__construct("file <strong>" . HTML::escape($file_name) . '</strong> not found');
|
||
|
}
|
||
|
}
|
||
|
class UOJSyncFailedException extends Exception {
|
||
|
public function __construct($msg) {
|
||
|
parent::__construct('同步失败:'.HTML::escape($msg));
|
||
|
}
|
||
|
}
|
||
|
class UOJUploadFailedException extends Exception {
|
||
|
public function __construct($msg) {
|
||
|
parent::__construct('上传失败:'.HTML::escape($msg));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class UOJInvalidArgumentException extends Exception {
|
||
|
public function __construct($msg) {
|
||
|
parent::__construct(HTML::escape($msg));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class UOJNotLoginException extends Exception {
|
||
|
public function __construct($msg = '未登录') {
|
||
|
parent::__construct(HTML::escape($msg));
|
||
|
}
|
||
|
}
|