VersionHandlingException

Exception thrown when the loaded encounters any issues with version support

Members

Functions

enforceInputLength
void enforceInputLength(size_t input_length, istring file, int line)

Used to enforce that input is large enough to store version bytes and some offset.

throwCantConvert
void throwCantConvert(Version.Type input_version, istring file, int line)

Used in case of version mismatch between requested struct and incoming buffer

Mixins

__anonymous
mixin ReusableExceptionImplementation
Undocumented in source.

Mixed In Members

From mixin ReusableExceptionImplementation

ocean.meta.types.Qualifiers
public import ocean.meta.types.Qualifiers;
Undocumented in source.
ocean.core.Buffer
public import ocean.core.Buffer;
Undocumented in source.
ocean.core.array.Mutation
public import ocean.core.array.Mutation;
Undocumented in source.
ocean.text.convert.Formatter
public import ocean.text.convert.Formatter;
Undocumented in source.
ocean.text.convert.Integer_tango
public import ocean.text.convert.Integer_tango;
Undocumented in source.
reused_msg
Buffer!(char) reused_msg;

Fields used instead of msg for mutable messages. Exception.msg has istring type thus can't be overwritten with new data

this
this(size_t size)

Constructs exception object with mutable buffer pre-allocated to length size and other fields kept invalid.

set
typeof(this) set(cstring msg, istring file, long line)

Sets exception information for this instance.

enforce
void enforce(T ok, cstring msg, istring file, long line)

Throws this instance if ok is false, 0 or null.

message
cstring message()
append
typeof(this) append(cstring msg)

Appends new substring to mutable exception message

append
typeof(this) append(long num, bool hex)

Appends an integer to mutable exception message

fmtAppend
typeof(this) fmtAppend(cstring fmt, Args args)

Appends formatted string

Meta