File: error.rb

package info (click to toggle)
ruby-bcrypt 3.1.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: ansic: 1,390; java: 764; ruby: 438; asm: 157; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module BCrypt

  class Error < StandardError  # :nodoc:
  end

  module Errors  # :nodoc:

    # The salt parameter provided to bcrypt() is invalid.
    class InvalidSalt < BCrypt::Error; end

    # The hash parameter provided to bcrypt() is invalid.
    class InvalidHash < BCrypt::Error; end

    # The cost parameter provided to bcrypt() is invalid.
    class InvalidCost < BCrypt::Error; end

    # The secret parameter provided to bcrypt() is invalid.
    class InvalidSecret < BCrypt::Error; end

  end

end