mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 13:10:35 +03:00
migrate other Phobos modules to use std.exception.basicExceptionCtors
This commit is contained in:
parent
8ddd871779
commit
5978ca7831
8 changed files with 58 additions and 154 deletions
10
std/uri.d
10
std/uri.d
|
@ -36,20 +36,14 @@ private import core.stdc.stdlib;
|
|||
private import std.utf;
|
||||
private import std.traits : isSomeChar;
|
||||
import core.exception : OutOfMemoryError;
|
||||
import std.exception : assumeUnique;
|
||||
import std.exception;
|
||||
|
||||
/** This Exception is thrown if something goes wrong when encoding or
|
||||
decoding a URI.
|
||||
*/
|
||||
class URIException : Exception
|
||||
{
|
||||
import std.array : empty;
|
||||
@safe pure nothrow this(string msg, string file = __FILE__,
|
||||
size_t line = __LINE__, Throwable next = null)
|
||||
{
|
||||
super("URI Exception" ~ (!msg.empty ? ": " ~ msg : ""), file, line,
|
||||
next);
|
||||
}
|
||||
mixin basicExceptionCtors;
|
||||
}
|
||||
|
||||
private enum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue