mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
199 B
D
17 lines
199 B
D
class MyError : Error
|
|
{
|
|
this(string msg)
|
|
{
|
|
super(msg);
|
|
}
|
|
}
|
|
|
|
void foo() nothrow
|
|
{
|
|
throw new Error("Some error");
|
|
}
|
|
|
|
void bar() nothrow
|
|
{
|
|
throw new MyError("Some error");
|
|
}
|