standard_exceptions 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +142 -55
- data/lib/standard_exceptions/version.rb +1 -1
- data/lib/standard_exceptions.rb +14 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3c79d3a622b6ed754de32bbb8c5eb1ff957320d
|
|
4
|
+
data.tar.gz: 08bd055ee0bdf77b115634cd68647268c7d7c6b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27a042fbcc943af2217b8d8352de8258e77214ca45c975c3909fb82da3c866d0feaf75508edbe3f72a56a09b68f23b82c43121e7a4a149a0382475890a455d0e
|
|
7
|
+
data.tar.gz: 8bb3ddf08b5f1615ddb2f55e1b45fdd8cdb2cdd63c64d8df7036c2189ce8f8a6c1fb99c860f9e3f9d081ac04ca321d3620711467b3baa3fb785770bbc3c2f9af
|
data/.idea/workspace.xml
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="c28650ea-2285-461a-af18-a54ab08d1550" name="Default" comment="
|
|
4
|
+
<list default="true" id="c28650ea-2285-461a-af18-a54ab08d1550" name="Default" comment="">
|
|
5
5
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/standard_exceptions.
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/standard_exceptions.rb" afterPath="$PROJECT_DIR$/lib/standard_exceptions.rb" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/standard_exceptions/version.rb" afterPath="$PROJECT_DIR$/lib/standard_exceptions/version.rb" />
|
|
7
8
|
</list>
|
|
8
9
|
<ignored path="standard_exceptions.iws" />
|
|
9
10
|
<ignored path=".idea/workspace.xml" />
|
|
@@ -36,16 +37,91 @@
|
|
|
36
37
|
</provider>
|
|
37
38
|
</entry>
|
|
38
39
|
</file>
|
|
39
|
-
<file leaf-file-name="standard_exceptions.gemspec" pinned="false" current-in-tab="
|
|
40
|
+
<file leaf-file-name="standard_exceptions.gemspec" pinned="false" current-in-tab="false">
|
|
40
41
|
<entry file="file://$PROJECT_DIR$/standard_exceptions.gemspec">
|
|
41
42
|
<provider selected="true" editor-type-id="text-editor">
|
|
42
|
-
<state vertical-scroll-proportion="0.
|
|
43
|
+
<state vertical-scroll-proportion="0.0">
|
|
43
44
|
<caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
|
|
44
45
|
<folding />
|
|
45
46
|
</state>
|
|
46
47
|
</provider>
|
|
47
48
|
</entry>
|
|
48
49
|
</file>
|
|
50
|
+
<file leaf-file-name="workspace.xml" pinned="false" current-in-tab="false">
|
|
51
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
|
52
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
53
|
+
<state vertical-scroll-proportion="-0.0">
|
|
54
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
55
|
+
<folding>
|
|
56
|
+
<marker date="1490914402000" expanded="true" signature="59:71122" placeholder="..." />
|
|
57
|
+
<marker date="1490914402000" expanded="true" signature="98:328" placeholder="..." />
|
|
58
|
+
<marker date="1490914402000" expanded="true" signature="71023:71096" placeholder="..." />
|
|
59
|
+
<marker date="1490914402000" expanded="true" signature="71023:71111" placeholder="..." />
|
|
60
|
+
</folding>
|
|
61
|
+
</state>
|
|
62
|
+
</provider>
|
|
63
|
+
</entry>
|
|
64
|
+
</file>
|
|
65
|
+
<file leaf-file-name="application.rb" pinned="false" current-in-tab="false">
|
|
66
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/application.rb">
|
|
67
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
68
|
+
<state vertical-scroll-proportion="0.0">
|
|
69
|
+
<caret line="11" column="47" selection-start-line="11" selection-start-column="47" selection-end-line="11" selection-end-column="47" />
|
|
70
|
+
<folding />
|
|
71
|
+
</state>
|
|
72
|
+
</provider>
|
|
73
|
+
</entry>
|
|
74
|
+
</file>
|
|
75
|
+
<file leaf-file-name="application_methods.rb" pinned="false" current-in-tab="false">
|
|
76
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/application_methods.rb">
|
|
77
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
78
|
+
<state vertical-scroll-proportion="0.0">
|
|
79
|
+
<caret line="0" column="27" selection-start-line="0" selection-start-column="27" selection-end-line="0" selection-end-column="27" />
|
|
80
|
+
<folding />
|
|
81
|
+
</state>
|
|
82
|
+
</provider>
|
|
83
|
+
</entry>
|
|
84
|
+
</file>
|
|
85
|
+
<file leaf-file-name="http.rb" pinned="false" current-in-tab="false">
|
|
86
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/http.rb">
|
|
87
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
88
|
+
<state vertical-scroll-proportion="0.0">
|
|
89
|
+
<caret line="7" column="47" selection-start-line="7" selection-start-column="47" selection-end-line="7" selection-end-column="47" />
|
|
90
|
+
<folding />
|
|
91
|
+
</state>
|
|
92
|
+
</provider>
|
|
93
|
+
</entry>
|
|
94
|
+
</file>
|
|
95
|
+
<file leaf-file-name="standard_exceptions.rb" pinned="false" current-in-tab="false">
|
|
96
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions.rb">
|
|
97
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
98
|
+
<state vertical-scroll-proportion="0.0">
|
|
99
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
|
100
|
+
<folding />
|
|
101
|
+
</state>
|
|
102
|
+
</provider>
|
|
103
|
+
</entry>
|
|
104
|
+
</file>
|
|
105
|
+
<file leaf-file-name="http_methods.rb" pinned="false" current-in-tab="false">
|
|
106
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/http_methods.rb">
|
|
107
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
108
|
+
<state vertical-scroll-proportion="0.0">
|
|
109
|
+
<caret line="0" column="33" selection-start-line="0" selection-start-column="33" selection-end-line="0" selection-end-column="33" />
|
|
110
|
+
<folding />
|
|
111
|
+
</state>
|
|
112
|
+
</provider>
|
|
113
|
+
</entry>
|
|
114
|
+
</file>
|
|
115
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
|
116
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/version.rb">
|
|
117
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
118
|
+
<state vertical-scroll-proportion="0.034">
|
|
119
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
120
|
+
<folding />
|
|
121
|
+
</state>
|
|
122
|
+
</provider>
|
|
123
|
+
</entry>
|
|
124
|
+
</file>
|
|
49
125
|
</leaf>
|
|
50
126
|
</component>
|
|
51
127
|
<component name="Git.Settings">
|
|
@@ -65,8 +141,10 @@
|
|
|
65
141
|
<option value="$PROJECT_DIR$/lib/standard_exceptions/http.rb" />
|
|
66
142
|
<option value="$PROJECT_DIR$/lib/standard_exceptions/http_methods.rb" />
|
|
67
143
|
<option value="$PROJECT_DIR$/lib/standard_exceptions/application_methods.rb" />
|
|
68
|
-
<option value="$PROJECT_DIR$/lib/standard_exceptions/version.rb" />
|
|
69
144
|
<option value="$PROJECT_DIR$/standard_exceptions.gemspec" />
|
|
145
|
+
<option value="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
146
|
+
<option value="$PROJECT_DIR$/lib/standard_exceptions.rb" />
|
|
147
|
+
<option value="$PROJECT_DIR$/lib/standard_exceptions/version.rb" />
|
|
70
148
|
</list>
|
|
71
149
|
</option>
|
|
72
150
|
</component>
|
|
@@ -734,7 +812,7 @@
|
|
|
734
812
|
<workItem from="1473312642991" duration="1051000" />
|
|
735
813
|
<workItem from="1473315178997" duration="1178000" />
|
|
736
814
|
<workItem from="1473765074518" duration="1355000" />
|
|
737
|
-
<workItem from="1490911329430" duration="
|
|
815
|
+
<workItem from="1490911329430" duration="3157000" />
|
|
738
816
|
</task>
|
|
739
817
|
<task id="LOCAL-00001" summary="fix address">
|
|
740
818
|
<created>1473313134384</created>
|
|
@@ -760,11 +838,17 @@
|
|
|
760
838
|
<option name="project" value="LOCAL" />
|
|
761
839
|
<updated>1473768532318</updated>
|
|
762
840
|
</task>
|
|
763
|
-
<
|
|
841
|
+
<task id="LOCAL-00005" summary="built and pushed as 0.1.3">
|
|
842
|
+
<created>1490912644668</created>
|
|
843
|
+
<option name="number" value="00005" />
|
|
844
|
+
<option name="project" value="LOCAL" />
|
|
845
|
+
<updated>1490912644668</updated>
|
|
846
|
+
</task>
|
|
847
|
+
<option name="localTasksCounter" value="6" />
|
|
764
848
|
<servers />
|
|
765
849
|
</component>
|
|
766
850
|
<component name="TimeTrackingManager">
|
|
767
|
-
<option name="totallyTimeSpent" value="
|
|
851
|
+
<option name="totallyTimeSpent" value="7490000" />
|
|
768
852
|
</component>
|
|
769
853
|
<component name="TodoView">
|
|
770
854
|
<todo-panel id="selected-file">
|
|
@@ -781,16 +865,18 @@
|
|
|
781
865
|
<layout>
|
|
782
866
|
<window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
783
867
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3299363" sideWeight="0.4974359" order="6" side_tool="false" content_ui="tabs" />
|
|
868
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32866243" sideWeight="0.4886447" order="9" side_tool="false" content_ui="tabs" />
|
|
784
869
|
<window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
785
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.
|
|
870
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32738853" sideWeight="0.53840524" order="7" side_tool="true" content_ui="tabs" />
|
|
786
871
|
<window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3299045" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
787
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.35159236" sideWeight="0.
|
|
788
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
872
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.35159236" sideWeight="0.6569129" order="10" side_tool="false" content_ui="tabs" />
|
|
873
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.49299362" sideWeight="0.44403803" order="2" side_tool="false" content_ui="tabs" />
|
|
789
874
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
|
|
790
875
|
<window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
791
876
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25676665" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
792
877
|
<window_info id="Reviews" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="13" side_tool="false" content_ui="tabs" />
|
|
793
878
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
879
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32738853" sideWeight="0.46159473" order="1" side_tool="false" content_ui="tabs" />
|
|
794
880
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24973376" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
795
881
|
<window_info id="News Feed" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
796
882
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
@@ -803,10 +889,8 @@
|
|
|
803
889
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
804
890
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
805
891
|
<window_info id="Atlassian " active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="14" side_tool="false" content_ui="tabs" />
|
|
806
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32866243" sideWeight="0.4886447" order="9" side_tool="false" content_ui="tabs" />
|
|
807
892
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
808
893
|
<window_info id="REST Client" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3299363" sideWeight="0.5" order="12" side_tool="false" content_ui="tabs" />
|
|
809
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32738853" sideWeight="0.46436444" order="1" side_tool="false" content_ui="tabs" />
|
|
810
894
|
</layout>
|
|
811
895
|
</component>
|
|
812
896
|
<component name="Vcs.Log.UiProperties">
|
|
@@ -826,7 +910,8 @@
|
|
|
826
910
|
<MESSAGE value="fix address" />
|
|
827
911
|
<MESSAGE value="added StandardExceptions::Methods" />
|
|
828
912
|
<MESSAGE value="added support for validation errors and inner exceptions" />
|
|
829
|
-
<
|
|
913
|
+
<MESSAGE value="built and pushed as 0.1.3" />
|
|
914
|
+
<option name="LAST_COMMIT_MESSAGE" value="built and pushed as 0.1.3" />
|
|
830
915
|
</component>
|
|
831
916
|
<component name="XDebuggerManager">
|
|
832
917
|
<breakpoint-manager />
|
|
@@ -858,25 +943,6 @@
|
|
|
858
943
|
</option>
|
|
859
944
|
</component>
|
|
860
945
|
<component name="editorHistoryManager">
|
|
861
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
|
862
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
863
|
-
<state vertical-scroll-proportion="0.0">
|
|
864
|
-
<caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="75" />
|
|
865
|
-
<folding />
|
|
866
|
-
</state>
|
|
867
|
-
</provider>
|
|
868
|
-
<provider editor-type-id="MarkdownPreviewEditor">
|
|
869
|
-
<state />
|
|
870
|
-
</provider>
|
|
871
|
-
</entry>
|
|
872
|
-
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
873
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
874
|
-
<state vertical-scroll-proportion="0.0">
|
|
875
|
-
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
876
|
-
<folding />
|
|
877
|
-
</state>
|
|
878
|
-
</provider>
|
|
879
|
-
</entry>
|
|
880
946
|
<entry file="file://$PROJECT_DIR$/standard_exceptions.gemspec">
|
|
881
947
|
<provider selected="true" editor-type-id="text-editor">
|
|
882
948
|
<state vertical-scroll-proportion="0.0">
|
|
@@ -1214,69 +1280,90 @@
|
|
|
1214
1280
|
</state>
|
|
1215
1281
|
</provider>
|
|
1216
1282
|
</entry>
|
|
1217
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1283
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
1218
1284
|
<provider selected="true" editor-type-id="text-editor">
|
|
1219
|
-
<state vertical-scroll-proportion="0.
|
|
1220
|
-
<caret line="
|
|
1285
|
+
<state vertical-scroll-proportion="0.5862069">
|
|
1286
|
+
<caret line="8" column="7" selection-start-line="8" selection-start-column="7" selection-end-line="8" selection-end-column="7" />
|
|
1221
1287
|
<folding />
|
|
1222
1288
|
</state>
|
|
1223
1289
|
</provider>
|
|
1290
|
+
<provider editor-type-id="MarkdownPreviewEditor">
|
|
1291
|
+
<state />
|
|
1292
|
+
</provider>
|
|
1224
1293
|
</entry>
|
|
1225
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1294
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
1226
1295
|
<provider selected="true" editor-type-id="text-editor">
|
|
1227
1296
|
<state vertical-scroll-proportion="0.0">
|
|
1228
|
-
<caret line="
|
|
1297
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
|
1229
1298
|
<folding />
|
|
1230
1299
|
</state>
|
|
1231
1300
|
</provider>
|
|
1232
1301
|
</entry>
|
|
1233
|
-
<entry file="file://$PROJECT_DIR
|
|
1302
|
+
<entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
|
|
1234
1303
|
<provider selected="true" editor-type-id="text-editor">
|
|
1235
|
-
<state vertical-scroll-proportion="0.
|
|
1236
|
-
<caret line="
|
|
1304
|
+
<state vertical-scroll-proportion="-0.0">
|
|
1305
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
1306
|
+
<folding>
|
|
1307
|
+
<marker date="1490914402000" expanded="true" signature="59:71122" placeholder="..." />
|
|
1308
|
+
<marker date="1490914402000" expanded="true" signature="98:328" placeholder="..." />
|
|
1309
|
+
<marker date="1490914402000" expanded="true" signature="71023:71096" placeholder="..." />
|
|
1310
|
+
<marker date="1490914402000" expanded="true" signature="71023:71111" placeholder="..." />
|
|
1311
|
+
</folding>
|
|
1312
|
+
</state>
|
|
1313
|
+
</provider>
|
|
1314
|
+
</entry>
|
|
1315
|
+
<entry file="file://$PROJECT_DIR$/standard_exceptions.gemspec">
|
|
1316
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1317
|
+
<state vertical-scroll-proportion="0.0">
|
|
1318
|
+
<caret line="14" column="28" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
|
|
1237
1319
|
<folding />
|
|
1238
1320
|
</state>
|
|
1239
1321
|
</provider>
|
|
1240
1322
|
</entry>
|
|
1241
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1323
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/application.rb">
|
|
1242
1324
|
<provider selected="true" editor-type-id="text-editor">
|
|
1243
|
-
<state vertical-scroll-proportion="0.
|
|
1244
|
-
<caret line="
|
|
1325
|
+
<state vertical-scroll-proportion="0.0">
|
|
1326
|
+
<caret line="11" column="47" selection-start-line="11" selection-start-column="47" selection-end-line="11" selection-end-column="47" />
|
|
1245
1327
|
<folding />
|
|
1246
1328
|
</state>
|
|
1247
1329
|
</provider>
|
|
1248
|
-
|
|
1249
|
-
|
|
1330
|
+
</entry>
|
|
1331
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/http_methods.rb">
|
|
1332
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
1333
|
+
<state vertical-scroll-proportion="0.0">
|
|
1334
|
+
<caret line="0" column="33" selection-start-line="0" selection-start-column="33" selection-end-line="0" selection-end-column="33" />
|
|
1335
|
+
<folding />
|
|
1336
|
+
</state>
|
|
1250
1337
|
</provider>
|
|
1251
1338
|
</entry>
|
|
1252
1339
|
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/application_methods.rb">
|
|
1253
1340
|
<provider selected="true" editor-type-id="text-editor">
|
|
1254
1341
|
<state vertical-scroll-proportion="0.0">
|
|
1255
|
-
<caret line="
|
|
1342
|
+
<caret line="0" column="27" selection-start-line="0" selection-start-column="27" selection-end-line="0" selection-end-column="27" />
|
|
1256
1343
|
<folding />
|
|
1257
1344
|
</state>
|
|
1258
1345
|
</provider>
|
|
1259
1346
|
</entry>
|
|
1260
|
-
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/
|
|
1347
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/http.rb">
|
|
1261
1348
|
<provider selected="true" editor-type-id="text-editor">
|
|
1262
|
-
<state vertical-scroll-proportion="0.
|
|
1263
|
-
<caret line="
|
|
1349
|
+
<state vertical-scroll-proportion="0.0">
|
|
1350
|
+
<caret line="7" column="47" selection-start-line="7" selection-start-column="47" selection-end-line="7" selection-end-column="47" />
|
|
1264
1351
|
<folding />
|
|
1265
1352
|
</state>
|
|
1266
1353
|
</provider>
|
|
1267
1354
|
</entry>
|
|
1268
|
-
<entry file="file://$PROJECT_DIR$/
|
|
1355
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions.rb">
|
|
1269
1356
|
<provider selected="true" editor-type-id="text-editor">
|
|
1270
1357
|
<state vertical-scroll-proportion="0.0">
|
|
1271
|
-
<caret line="
|
|
1358
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
|
1272
1359
|
<folding />
|
|
1273
1360
|
</state>
|
|
1274
1361
|
</provider>
|
|
1275
1362
|
</entry>
|
|
1276
|
-
<entry file="file://$PROJECT_DIR$/standard_exceptions.
|
|
1363
|
+
<entry file="file://$PROJECT_DIR$/lib/standard_exceptions/version.rb">
|
|
1277
1364
|
<provider selected="true" editor-type-id="text-editor">
|
|
1278
|
-
<state vertical-scroll-proportion="0.
|
|
1279
|
-
<caret line="
|
|
1365
|
+
<state vertical-scroll-proportion="0.034">
|
|
1366
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
|
1280
1367
|
<folding />
|
|
1281
1368
|
</state>
|
|
1282
1369
|
</provider>
|
data/lib/standard_exceptions.rb
CHANGED
|
@@ -2,14 +2,14 @@ require "standard_exceptions/version"
|
|
|
2
2
|
|
|
3
3
|
module StandardExceptions
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class Exception < ::StandardError
|
|
8
|
-
MESSAGE = 'An error occurred that could not be identified'
|
|
9
|
-
STATUS = 500
|
|
10
|
-
|
|
5
|
+
module ExceptionInterface
|
|
11
6
|
attr_accessor :status
|
|
12
7
|
|
|
8
|
+
attr_writer :inner
|
|
9
|
+
def inner
|
|
10
|
+
@inner || self.cause
|
|
11
|
+
end
|
|
12
|
+
|
|
13
13
|
# eg. 'Not Found'
|
|
14
14
|
def self.human_name(e_class=self)
|
|
15
15
|
i = e_class.name.rindex('::')
|
|
@@ -20,11 +20,15 @@ module StandardExceptions
|
|
|
20
20
|
def human_name
|
|
21
21
|
self.class.human_name
|
|
22
22
|
end
|
|
23
|
+
end
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
# messages are based on http://httpstatuses.com
|
|
26
|
+
|
|
27
|
+
class Exception < ::StandardError
|
|
28
|
+
MESSAGE = 'An error occurred that could not be identified'
|
|
29
|
+
STATUS = 500
|
|
30
|
+
|
|
31
|
+
include ExceptionInterface
|
|
28
32
|
|
|
29
33
|
def initialize(message=nil,status=nil,inner=nil)
|
|
30
34
|
super(message || self.class::MESSAGE)
|