Provide a more reasonable to_s value for wrapped exceptions

git-svn-id: file:///home/svn/framework3/trunk@12785 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-05-31 17:23:13 +00:00
parent e344adb3fd
commit f75a907f4b
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ class ServerException < RuntimeError
self.error_class = error_class self.error_class = error_class
self.error_backtrace = error_backtrace self.error_backtrace = error_backtrace
end end
def to_s
"#{self.error_class} #{self.error_message} #{self.error_backtrace}"
end
end end
end end