Displaying 2 results from an estimated 2 matches for "customerror".
2009 Apr 14
0
top level condition handlers
Hello,
I would like to establish top level condition handlers and restarts, so
that I don't explicit calls to withCallingHandlers and withRestarts in
many places:
For example :
> customError
function( message ){
err <- simpleError( message )
class( err ) <- c( "customError", class( err) )
err
}
> withCallingHandlers( { signalCondition(customError( "ouch")) } ,
customError = function(e) cat( "gotcha : ", e$message, "\n" ) )
gotch...
2006 May 17
0
CustomErrors Plugin
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom_errors-v0.1.zip
Type: application/zip
Size: 4247 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060517/360db211/custom_errors-v0.1-0001.zip