migrate other Phobos modules to use std.exception.basicExceptionCtors

This commit is contained in:
Shriramana Sharma 2016-01-13 19:39:21 +05:30
parent 8ddd871779
commit 5978ca7831
8 changed files with 58 additions and 154 deletions

View file

@ -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