Exception: Memcached::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/memcached/exceptions.rb

Overview

Superclass for all Memcached runtime exceptions.

Subclasses correspond one-to-one with server response strings or libmemcached errors. For example, raising Memcached::NotFound means that the server returned "NOT_FOUND\r\n".

Subclasses

  • Memcached::ABadKeyWasProvidedOrCharactersOutOfRange

  • Memcached::AKeyLengthOfZeroWasProvided

  • Memcached::ATimeoutOccurred

  • Memcached::ActionNotSupported

  • Memcached::ActionQueued

  • Memcached::ClientError

  • Memcached::ConnectionBindFailure

  • Memcached::ConnectionDataDoesNotExist

  • Memcached::ConnectionDataExists

  • Memcached::ConnectionFailure

  • Memcached::ConnectionSocketCreateFailure

  • Memcached::CouldNotOpenUnixSocket

  • Memcached::EncounteredAnUnknownStatKey

  • Memcached::Failure

  • Memcached::FetchWasNotCompleted

  • Memcached::HostnameLookupFailure

  • Memcached::ItemValue

  • Memcached::MemoryAllocationFailure

  • Memcached::NoServersDefined

  • Memcached::NotFound

  • Memcached::NotStored

  • Memcached::PartialRead

  • Memcached::ProtocolError

  • Memcached::ReadFailure

  • Memcached::ServerDelete

  • Memcached::ServerEnd

  • Memcached::ServerError

  • Memcached::ServerIsMarkedDead

  • Memcached::ServerValue

  • Memcached::SomeErrorsWereReported

  • Memcached::StatValue

  • Memcached::SystemError

  • Memcached::TheHostTransportProtocolDoesNotMatchThatOfTheClient

  • Memcached::UnknownReadFailure

  • Memcached::WriteFailure

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#no_backtraceObject

Returns the value of attribute no_backtrace.



50
51
52
# File 'lib/memcached/exceptions.rb', line 50

def no_backtrace
  @no_backtrace
end

Instance Method Details

#backtrace(*args) ⇒ Object



56
57
58
# File 'lib/memcached/exceptions.rb', line 56

def backtrace(*args)
  @no_backtrace ? [] : super
end

#set_backtrace(*args) ⇒ Object



52
53
54
# File 'lib/memcached/exceptions.rb', line 52

def set_backtrace(*args)
  @no_backtrace ? [] : super
end