ultraspeed-epp 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/epp/exceptions.rb +13 -0
  2. data/lib/epp.rb +1 -1
  3. metadata +2 -1
@@ -0,0 +1,13 @@
1
+ class EppErrorResponse < StandardError #:nodoc:
2
+ attr_accessor :response
3
+
4
+ # Generic EPP exception. Accepts a response code and a message
5
+ def initialize(attributes = {})
6
+ @response_code = attributes[:code]
7
+ @message = attributes[:message]
8
+ end
9
+
10
+ def to_s
11
+ "#{@message} (code #{@response_code})"
12
+ end
13
+ end
data/lib/epp.rb CHANGED
@@ -12,5 +12,5 @@ require File.dirname(__FILE__) + '/epp/server.rb'
12
12
  require File.dirname(__FILE__) + '/epp/exceptions.rb'
13
13
 
14
14
  module Epp #:nodoc:
15
- VERSION = '1.0.5'
15
+ VERSION = '1.0.6'
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultraspeed-epp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Delsman
@@ -41,6 +41,7 @@ extensions: []
41
41
  extra_rdoc_files: []
42
42
 
43
43
  files:
44
+ - lib/epp/exceptions.rb
44
45
  - lib/epp/server.rb
45
46
  - lib/epp.rb
46
47
  - lib/require_parameters.rb