Implementation

Class: DataError. DataError subclasses DataErrorInt.

Constants

DEFAULT_MESSAGE inherited‚Äč

Attributes

message

A String explaining a raised error instance.

Methods

initialize(message = DEFAULT_MESSAGE)

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

Initializes an error object. Takes a String message explaining the error. Returns a DataError instance.

message()

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

Gets message 's reference. Returns the String.