Доработан модуль конфигурации, включающий исключения при возникновении ошибок

This commit is contained in:
Alexander Zhirov 2025-05-23 20:47:53 +03:00
parent 309a47ea3a
commit f1d1bce20b
Signed by: alexander
GPG key ID: C8D8BE544A27C511
3 changed files with 111 additions and 0 deletions

View 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);
}
}