Implementation

Constants

DEFAULT_MESSAGE

The default error message. A String explaining the object is not a Node.

Attributes

message

A String error message. Either the default message or the message argued during initialization.

Methods

initialize(message = DEFAULT_MESSAGE)

def initialize(message = DEFAULT_MESSAGE)
self.message = message
end

Initializes a NodeError instance. Takes a String explaining the error. The argument reference, frozen, becomes message. In the case the argument is any type other than String , raises a TypeError.

message()

def message()
return @message.freeze()
end

Gets message 's reference. Returns the String.