NAME

Net::DHCPv6::X - Exception base class for Net::DHCPv6

VERSION

version 0.001

SYNOPSIS

Net::DHCPv6::X::Truncated->throw(message => 'Buffer too short');

DESCRIPTION

Base class for all Net::DHCPv6 exceptions. Exceptions are objects, not strings. Use isa checks to distinguish error types:

if ($@ && $@->isa('Net::DHCPv6::X::Truncated')) { ... }

ALPHA STATUS

ALPHA SOFTWARE. This is an early release. The interface is experimental and subject to change without notice.

SUBCLASSES

Net::DHCPv6::X::Truncated

Thrown when a buffer is too short for expected header or data.

Net::DHCPv6::X::BadDUID

Thrown when DUID data is invalid.

Net::DHCPv6::X::BadOption

Thrown when option data violates the expected format.

Net::DHCPv6::X::BadMessage

Thrown when a message header is invalid or corrupt.

Net::DHCPv6::X::Internal

Thrown on internal logic errors in the library.

METHODS

throw(message => $str, ...)

Creates a new exception object and croaks with it. Extra key-value pairs are stored on the object.

message

Returns the human-readable error message string.

AUTHOR

Dean Hamstead <dean@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Dean Hamstead.

This is free software, licensed under:

The MIT (X11) License