mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 07:30:33 +03:00
Merge pull request #4986 from jmdavis/string_trivial
Make std.string.StringException use basicExceptionCtors.
This commit is contained in:
commit
b95b67a687
1 changed files with 4 additions and 14 deletions
18
std/string.d
18
std/string.d
|
@ -209,20 +209,10 @@ public import std.array : join, replace, replaceInPlace, split, empty;
|
||||||
+/
|
+/
|
||||||
class StringException : Exception
|
class StringException : Exception
|
||||||
{
|
{
|
||||||
/++
|
import std.exception : basicExceptionCtors;
|
||||||
Params:
|
|
||||||
msg = The message for the exception.
|
///
|
||||||
file = The file where the exception occurred.
|
mixin basicExceptionCtors;
|
||||||
line = The line number where the exception occurred.
|
|
||||||
next = The previous exception in the chain of exceptions, if any.
|
|
||||||
+/
|
|
||||||
this(string msg,
|
|
||||||
string file = __FILE__,
|
|
||||||
size_t line = __LINE__,
|
|
||||||
Throwable next = null) @safe pure nothrow
|
|
||||||
{
|
|
||||||
super(msg, file, line, next);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue