Provide a more reasonable to_s value for wrapped exceptions
git-svn-id: file:///home/svn/framework3/trunk@12785 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e344adb3fd
commit
f75a907f4b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue