Доработан модуль конфигурации, включающий исключения при возникновении ошибок
This commit is contained in:
parent
309a47ea3a
commit
f1d1bce20b
3 changed files with 111 additions and 0 deletions
14
source/snapd/config/exception.d
Normal file
14
source/snapd/config/exception.d
Normal file
|
@ -0,0 +1,14 @@
|
|||
module snapd.config.exception;
|
||||
|
||||
import std.exception;
|
||||
import std.stdio : writeln;
|
||||
|
||||
class SnapdConfigException : Exception {
|
||||
this(string msg, string file = __FILE__, size_t line = __LINE__) {
|
||||
super(msg, file, line);
|
||||
}
|
||||
|
||||
void print() {
|
||||
writeln(msg);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue