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.

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.

Meta