Sha256: c4fa174b3bc1cf75413603563e861ce5b85c279fd4fce3834bf0199add339fa3

Contents?: true

Size: 1.11 KB

Versions: 10

Compression:

Stored size: 1.11 KB

Contents

# Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com).
# Licensed under the terms of the MIT license. See LICENCE for details.

module LastPass
    # Base class for all errors, should not be raised
    class Error < StandardError; end

    #
    # Generic errors
    #

    # Something went wrong with the network
    class NetworkError < Error; end

    # Server responded with something we don't understand
    class InvalidResponseError < Error; end

    # Server responded with XML we don't understand
    class UnknownResponseSchemaError < Error; end

    #
    # LastPass returned errors
    #

    # LastPass error: unknown username
    class LastPassUnknownUsernameError < Error; end

    # LastPass error: invalid password
    class LastPassInvalidPasswordError < Error; end

    # LastPass error: missing or incorrect Google Authenticator code
    class LastPassIncorrectGoogleAuthenticatorCodeError < Error; end

    # LastPass error: missing or incorrect Yubikey password
    class LastPassIncorrectYubikeyPasswordError < Error; end

    # LastPass error we don't know about
    class LastPassUnknownError < Error; end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lastpass-1.7.1 lib/lastpass/exceptions.rb
lastpass-1.7.0 lib/lastpass/exceptions.rb
lastpass-1.6.1 lib/lastpass/exceptions.rb
lastpass-1.6.0 lib/lastpass/exceptions.rb
lastpass-1.5.0 lib/lastpass/exceptions.rb
lastpass-1.4.0 lib/lastpass/exceptions.rb
lastpass-1.3.0 lib/lastpass/exceptions.rb
lastpass-1.2.1 lib/lastpass/exceptions.rb
lastpass-1.2.0 lib/lastpass/exceptions.rb
lastpass-1.1.0 lib/lastpass/exceptions.rb