Create a new IRCParseException, without attaching an IRCEvent.
Create a new IRCParseException, attaching an IRCEvent to it.
import std.exception : assertThrown; IRCEvent event; assertThrown!IRCParseException((){ throw new IRCParseException("adf"); }()); assertThrown!IRCParseException(() { throw new IRCParseException("adf", event); }()); assertThrown!IRCParseException(() { throw new IRCParseException("adf", event, "somefile.d"); }()); assertThrown!IRCParseException(() { throw new IRCParseException("adf", event, "somefile.d", 9999U); }());
IRC Parsing Exception, thrown when there were errors parsing.
It is a normal object.Exception but with an attached IRCEvent.