From 871d24948bf139473c1f2cb1c03ac81310c7393e Mon Sep 17 00:00:00 2001 From: Anton Chuchkalov Date: Thu, 3 Sep 2015 14:07:21 +0300 Subject: [PATCH] change superclass of custom exceptions --- devops-service/exceptions/conflict_exception.rb | 2 +- devops-service/exceptions/dependency_error.rb | 2 +- devops-service/exceptions/deploy_info_error.rb | 2 +- devops-service/exceptions/invalid_command.rb | 2 +- devops-service/exceptions/invalid_privileges.rb | 2 +- devops-service/exceptions/invalid_record.rb | 2 +- devops-service/exceptions/parser_error.rb | 2 +- devops-service/exceptions/record_not_found.rb | 2 +- devops-service/exceptions/validation_error.rb | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/devops-service/exceptions/conflict_exception.rb b/devops-service/exceptions/conflict_exception.rb index a4e78c2..a392c85 100644 --- a/devops-service/exceptions/conflict_exception.rb +++ b/devops-service/exceptions/conflict_exception.rb @@ -1,4 +1,4 @@ -class ConflictException < Exception#StandardError +class ConflictException < StandardError end diff --git a/devops-service/exceptions/dependency_error.rb b/devops-service/exceptions/dependency_error.rb index b7215c6..573417b 100644 --- a/devops-service/exceptions/dependency_error.rb +++ b/devops-service/exceptions/dependency_error.rb @@ -1,3 +1,3 @@ -class DependencyError < Exception +class DependencyError < StandardError end \ No newline at end of file diff --git a/devops-service/exceptions/deploy_info_error.rb b/devops-service/exceptions/deploy_info_error.rb index b6f899c..92a5e97 100644 --- a/devops-service/exceptions/deploy_info_error.rb +++ b/devops-service/exceptions/deploy_info_error.rb @@ -1,3 +1,3 @@ -class DeployInfoError < Exception +class DeployInfoError < StandardError end diff --git a/devops-service/exceptions/invalid_command.rb b/devops-service/exceptions/invalid_command.rb index 2c219df..e793b17 100644 --- a/devops-service/exceptions/invalid_command.rb +++ b/devops-service/exceptions/invalid_command.rb @@ -1,3 +1,3 @@ -class InvalidCommand < Exception +class InvalidCommand < StandardError end diff --git a/devops-service/exceptions/invalid_privileges.rb b/devops-service/exceptions/invalid_privileges.rb index 16aaa03..af75e01 100644 --- a/devops-service/exceptions/invalid_privileges.rb +++ b/devops-service/exceptions/invalid_privileges.rb @@ -1,3 +1,3 @@ -class InvalidPrivileges < Exception +class InvalidPrivileges < StandardError end diff --git a/devops-service/exceptions/invalid_record.rb b/devops-service/exceptions/invalid_record.rb index c94a1c4..5ca7cb1 100644 --- a/devops-service/exceptions/invalid_record.rb +++ b/devops-service/exceptions/invalid_record.rb @@ -1,3 +1,3 @@ -class InvalidRecord < Exception +class InvalidRecord < StandardError end diff --git a/devops-service/exceptions/parser_error.rb b/devops-service/exceptions/parser_error.rb index 3afda7a..ef98527 100644 --- a/devops-service/exceptions/parser_error.rb +++ b/devops-service/exceptions/parser_error.rb @@ -1,4 +1,4 @@ module Devops - class ParserError < Exception + class ParserError < StandardError end end diff --git a/devops-service/exceptions/record_not_found.rb b/devops-service/exceptions/record_not_found.rb index 775e2bb..bc4a1c5 100644 --- a/devops-service/exceptions/record_not_found.rb +++ b/devops-service/exceptions/record_not_found.rb @@ -1,3 +1,3 @@ -class RecordNotFound < Exception#StandardError +class RecordNotFound < StandardError end diff --git a/devops-service/exceptions/validation_error.rb b/devops-service/exceptions/validation_error.rb index 9f275e9..fb850dd 100644 --- a/devops-service/exceptions/validation_error.rb +++ b/devops-service/exceptions/validation_error.rb @@ -1,5 +1,5 @@ module Devops - class ValidationError < Exception + class ValidationError < StandardError attr_accessor :json