AdvanceExceptionImpl

Exception, to be thrown when a call to advancePast went wrong.

This is the templated implementation, so that we can support more than one kind of needle and haystack combination.

It is a normal Exception but with an attached needle and haystack.

Constructors

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

Create a new AdvanceExceptionImpl, without attaching anything.

this
this(string message, Haystack haystack, Needle needle, string file, size_t line, Throwable nextInChain)

Create a new AdvanceExceptionImpl, attaching a command.

Members

Functions

haystack
string haystack()

Returns a string of the original needle the call to advancePast was operating on.

needle
string needle()

Returns a string of the original needle the call to advancePast was operating on.

Variables

_haystack
string _haystack;

Raw haystack that haystack converts to string and returns.

_needle
string _needle;

Raw needle that needle converts to string and returns.

Inherited Members

From AdvanceException

haystack
string haystack()

Returns a string of the original haystack the call to advancePast was operating on.

needle
string needle()

Returns a string of the original needle the call to advancePast was operating on.

Parameters

Haystack

Haystack array type.

Needle

Needle array or char-like type.