Sha256: 62588f309af022651e8dc54b6757bde669f95f995e876e76348454265c4545b9
Contents?: true
Size: 1.25 KB
Versions: 7
Compression:
Stored size: 1.25 KB
Contents
module JIJI class AbstractError < StandardError def initialize( code, message="", info={} ) super( message ) @code = code @info = info end def detail {"code"=>@code,"info"=>@info} end attr :code attr :info, true end # 致命的エラー class FatalError < AbstractError def initialize( code, message="", info={} ) super end end # ユーザー操作により発生しうるエラー class UserError < AbstractError def initialize( code, message="", info={} ) super end end # エラーコード:存在しない ERROR_NOT_FOUND = "not_found" # エラーコード:すでに存在する ERROR_ALREADY_EXIST = "already_exist" # エラーコード:ファイルでない ERROR_IS_NOT_FILE = "is_not_file" # エラーコード:フォルダでない ERROR_IS_NOT_FOLDER = "is_not_folder" # エラーコード:不正な名前 ERROR_ILLEGAL_NAME = "illegal_name" # エラーコード:不正な引数 ERROR_ILLEGAL_ARGUMENTS = "illegal_arguments" # エラーコード:想定外エラー ERROR_FATAL = "fatal" # エラーコード:サーバーに接続されていない ERROR_NOT_CONNECTED = "not_connected" end
Version data entries
7 entries across 7 versions & 2 rubygems