IRCParseException

IRC Parsing Exception, thrown when there were errors parsing.

It is a normal object.Exception but with an attached IRCEvent.

Constructors

this
this(string message, string file, size_t line, Throwable nextInChain)

Create a new IRCParseException, without attaching an IRCEvent.

this
this(string message, IRCEvent event, string file, size_t line, Throwable nextInChain)

Create a new IRCParseException, attaching an IRCEvent to it.

Members

Variables

event
IRCEvent event;

Bundled IRCEvent, parsing which threw this exception.

Examples

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);
}());

Meta