Skip to content

Commit

Permalink
i18n: Add exception classes (#448)
Browse files Browse the repository at this point in the history
Co-authored-by: Masataka Pocke Kuwabara <[email protected]>
  • Loading branch information
tk0miya and pocke authored Oct 23, 2023
1 parent 88ca813 commit 5a116bf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions gems/i18n/1.10/i18n.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,40 @@ module I18n
def self.deep_symbolize_keys: (Hash[untyped, untyped] hash) -> Hash[Symbol, untyped]
def self.deep_symbolize_keys_in_object: (untyped value) -> untyped
end

class ArgumentError < ::ArgumentError
end

class Disabled < ArgumentError
end

class InvalidLocale < ArgumentError
end

class InvalidLocaleData < ArgumentError
end

class MissingTranslation < ArgumentError
end

class MissingTranslationData < ArgumentError
end

class InvalidPluralizationData < ArgumentError
end

class MissingInterpolationArgument < ArgumentError
end

class ReservedInterpolationKey < ArgumentError
end

class UnknownFileType < ArgumentError
end

class UnsupportedMethod < ArgumentError
end

class InvalidFilenames < ArgumentError
end
end

0 comments on commit 5a116bf

Please sign in to comment.