Your SlideShare is downloading. ×
0
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Ruby exceptions
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Ruby exceptions

136

Published on

A little presentation about Ruby Exceptions.

A little presentation about Ruby Exceptions.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
136
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Ruby Exceptions!
  • 2. Hierarch and usage
  • 3. NoMemoryError!
  • 4. NoMemoryErrorRaised whenmemoryallocation fails.
  • 5. ScriptError!
  • 6. ScriptErrorSuperclass for errorsraised when a script cannot be executed
  • 7. ScriptErrorHierarch
  • 8. LoadErrorRaised when a filerequired fails to load
  • 9. NotImplementedErrorRaised when afeature is notimplemented on thecurrent platform
  • 10. SyntaxErrorRaised whenencountering Rubycode with an invalidsyntax
  • 11. SignalException!SignalException!
  • 12. Raised when asignal isreceivedSignalException
  • 13. SignalExceptionHierarch
  • 14. InterruptRaised with the interruptsignal is received, typicallybecause the user pressed onControl-C
  • 15. StandardError!
  • 16. StandardErrorThe most standard error typesare subclasses ofStandardError
  • 17. StandardErrorHierarch
  • 18. ArgumentErrorRaised when thearguments arewrong
  • 19. IndexErrorRaised when thegiven index isinvalid.
  • 20. StopIteration < IndexErrorRaised to stop theiteration, inparticular byEnumerator#next
  • 21. IOErrorRaised when an IOoperation fails.
  • 22. EOFError < IOErrorRaised by some IOoperations whenreaching the end offile, nil for example
  • 23. LocalJumpErrorRaised when Rubycant yield asrequested
  • 24. NameErrorRaised when a givenname is invalid orundefined
  • 25. NoMethodError < NameErrorRaised when amethod is called on areceiver whichdoesnt have itdefined
  • 26. RangeErrorRaised when a givennumerical value isout of range
  • 27. FloatDomainError < RangeErrorRaised whenattempting toconvert special floatvalues
  • 28. RegexpErrorRaised when givenan invalid regexpexpression.
  • 29. RuntimeError *default for raiseA generic error classraised when aninvalid operation isattempted.
  • 30. SecurityErrorRaised whenattempting a potentialunsafe operation,typically when the$SAFE level is raisedabove 0.
  • 31. SystemCallErrorSystemCallError is thebase class for all low-level platform-dependent errors.
  • 32. SystemStackErrorRaised in case of astack overflow.
  • 33. ThreadErrorRaised when aninvalid operation isattempted on athread.
  • 34. TypeErrorRaised whenencountering anobject that is not ofthe expected type.
  • 35. ZeroDivisionErrorRaised whenattempting to dividean integer by 0
  • 36. SystemExit!
  • 37. Raised by exit toinitiate thetermination of thescript.
  • 38. fatal – impossible torescue!
  • 39. Thanks
  • 40. @johalfjohalffarina@gmail.com

×