Skip to content

Commit 9baf545

Browse files
committed
Extract exceptions to its own file
1 parent 996b85f commit 9baf545

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

lib/indieweb/endpoints.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44
require "link-header-parser"
55
require "nokogiri/html-ext"
66

7+
require_relative "endpoints/exceptions"
8+
79
require_relative "endpoints/client"
810
require_relative "endpoints/parser"
911

1012
module IndieWeb
1113
module Endpoints
12-
class Error < StandardError; end
13-
14-
class HttpError < Error; end
15-
16-
class InvalidURIError < Error; end
17-
18-
class SSLError < Error; end
19-
2014
# Discover a URL's IndieAuth, Micropub, Microsub, and Webmention endpoints.
2115
#
2216
# Convenience method for {Client#endpoints}.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
module IndieWeb
4+
module Endpoints
5+
class Error < StandardError; end
6+
7+
class HttpError < Error; end
8+
9+
class InvalidURIError < Error; end
10+
11+
class SSLError < Error; end
12+
end
13+
end

0 commit comments

Comments
 (0)