Allow the exception handler to convert exceptions to hide error messages.

This commit is contained in:
Dylan Thacker-Smith
2015-05-27 18:59:51 -04:00
parent 89c6e605f8
commit 8d5e71f856
4 changed files with 37 additions and 12 deletions
+4
View File
@@ -102,6 +102,10 @@ class ErrorDrop < Liquid::Drop
raise Liquid::SyntaxError, 'syntax error'
end
def runtime_error
raise RuntimeError, 'runtime error'
end
def exception
raise Exception, 'exception'
end