Class KyotoCabinet::Error
In: kyotocabinet.rb
Parent: RuntimeError

Error data.

Methods

!=   ==   code   inspect   message   name   new   set   to_s  

Constants

SUCCESS = 0   error code: success
NOIMPL = 1   error code: not implemented
INVALID = 2   error code: invalid operation
NOREPOS = 3   error code: no repository
NOPERM = 4   error code: no permission
BROKEN = 5   error code: broken file
DUPREC = 6   error code: record duplication
NOREC = 7   error code: no record
LOGIC = 8   error code: logical inconsistency
SYSTEM = 9   error code: system error
MISC = 15   error code: miscellaneous error

Public Class methods

Create an error object.

  • @param code the error code.
  • @param message the supplement message.
  • @return the error object.

Public Instance methods

Negation equality operator.

  • @param right an error object or an error code.
  • @return false for the both operands are equal, or true if not.

Equality operator.

  • @param right an error object or an error code.
  • @return true for the both operands are equal, or false if not.

Get the error code.

  • @return the error code.

Get the inspection string.

  • @return the inspection string.

Get the supplement message.

  • @return the supplement message.

Get the readable string of the code.

  • @return the readable string of the code.

Set the error information.

  • @param code the error code.
  • @param message the supplement message.
  • @return always nil.

Get the string expression.

  • @return the string expression.