about summary refs log tree commit diff
path: root/lib/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exceptions.rb')
-rw-r--r--lib/exceptions.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/exceptions.rb b/lib/exceptions.rb
index 0c677b660..3c5ba226b 100644
--- a/lib/exceptions.rb
+++ b/lib/exceptions.rb
@@ -25,4 +25,13 @@ module Mastodon
       end
     end
   end
+
+  class PrivateNetworkAddressError < HostValidationError
+    attr_reader :host
+
+    def initialize(host)
+      @host = host
+      super()
+    end
+  end
 end