diff --git a/source/snag/core/core.d b/source/snag/core/core.d index c60d315..06aad49 100644 --- a/source/snag/core/core.d +++ b/source/snag/core/core.d @@ -4,20 +4,11 @@ import snag.config; import std.format; import std.stdio; import std.array; -import std.exception; import std.process; import std.algorithm; import std.string; -class SnagException : Exception { - this(string msg, string file = __FILE__, size_t line = __LINE__) { - super(msg, file, line); - } - - void print() { - writeln(msg); - } -} +import snag.core.exception; class Snag { private string[] _baseCommand; diff --git a/source/snag/core/exception.d b/source/snag/core/exception.d new file mode 100644 index 0000000..1b79433 --- /dev/null +++ b/source/snag/core/exception.d @@ -0,0 +1,14 @@ +module snag.core.exception; + +import std.exception; +import std.stdio; + +class SnagException : Exception { + this(string msg, string file = __FILE__, size_t line = __LINE__) { + super(msg, file, line); + } + + void print() { + writeln(msg); + } +} diff --git a/source/snag/core/package.d b/source/snag/core/package.d index 7e8e82a..1b88bba 100644 --- a/source/snag/core/package.d +++ b/source/snag/core/package.d @@ -1,3 +1,4 @@ module snag.core; public import snag.core.core; +public import snag.core.exception;