lib/burghers/response.rb in burghers-0.0.2 vs lib/burghers/response.rb in burghers-0.0.3
- old
+ new
@@ -9,10 +9,10 @@
@tags = []
@entities = []
@relations = []
if @raw['doc']['meta']['language'] == "InputTextTooShort"
- raise "Document too short to process."
+ raise DocumentTooSmallError, "Document too short to process."
end
@raw.each do |key, value|
case value["_typeGroup"]
when 'topics'