Module: AwsSecretsManager::Errors
- Defined in:
- lib/aws_secrets_manager/errors.rb
Defined Under Namespace
Classes: Error
Class Method Summary collapse
- .secret_not_exists_error(secret_name) ⇒ Object
- .secret_type_error ⇒ Object
- .validation_error(error) ⇒ Object
Class Method Details
.secret_not_exists_error(secret_name) ⇒ Object
16 17 18 |
# File 'lib/aws_secrets_manager/errors.rb', line 16 def secret_not_exists_error(secret_name) Error.new("AWS Secrets Manager Secret #{secret_name} not exists!!!") end |
.secret_type_error ⇒ Object
12 13 14 |
# File 'lib/aws_secrets_manager/errors.rb', line 12 def secret_type_error Error.new("Only #{Config::PLAINTEXT} && #{Config::KEY_VALUE} secrets types is allowed!!!") end |
.validation_error(error) ⇒ Object
8 9 10 |
# File 'lib/aws_secrets_manager/errors.rb', line 8 def validation_error(error) Error.new(error) end |