Hglib::

DisabledExtensionError

class
Superclass
Hglib::Error

Exception raised when a command failed because the extension it belongs to was disabled.

Attributes

command[R]

The command that failed

extension[R]

The name of the extension which defines the command

Public Class Methods

anchor
new( command, extension )

Create a new instance for the given command and the name of the extension which defines it.

# File lib/hglib.rb, line 92
def initialize( command, extension )
        @command = command
        @extension = extension
end

Public Instance Methods

anchor
message()

Return an message describing what the command and disabled extension were.

# File lib/hglib.rb, line 108
def message
        return "`%s`: command is provided by disabled extension `%s`" % [
                self.command,
                self.extension,
        ]
end