Implementation

Class: DataStructureError. DataStructureError subclasses DataStructureErrorInt.

Constants

DEFAULT_MESSAGE inherited‚Äč

A String literal containing the default error message. The default message is 'The type was neither Array, Hash, Queue, SizedQueue, Node, or LinkedList.'

Attributes

message

A String error explanation.

Methods

initialize(message = DEFAULT_MESSAGE)

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

Initializes instances. Takes a String error explanation. Returns a DataStructureError instance. The instance's message attribute refers the argued String.

message()

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

Gets message's reference. Returns a String explanation.