Module: Crowdin::Errors::ApiErrorsRaiser
- Defined in:
- lib/crowdin-api/core/errors_raisers.rb
Overview
API errors raiser
Instance Method Summary collapse
- #raise_only_for_enterprise_mode_error ⇒ Object
- #raise_parameter_is_required_error(parameter) ⇒ Object
- #raise_project_id_is_required_error ⇒ Object
Instance Method Details
#raise_only_for_enterprise_mode_error ⇒ Object
26 27 28 |
# File 'lib/crowdin-api/core/errors_raisers.rb', line 26 def raise_only_for_enterprise_mode_error raise(OnlyForEnterpriseModeError, 'This method can be called only for Enterprise mode') end |
#raise_parameter_is_required_error(parameter) ⇒ Object
34 35 36 |
# File 'lib/crowdin-api/core/errors_raisers.rb', line 34 def raise_parameter_is_required_error(parameter) raise(ArgumentError, ":#{parameter} is required") end |
#raise_project_id_is_required_error ⇒ Object
30 31 32 |
# File 'lib/crowdin-api/core/errors_raisers.rb', line 30 def raise_project_id_is_required_error raise(ArgumentError, ':project_id is required in parameters or while Client initialization') end |