- [Narrator] In this chapter, we're going to learn…about exceptions in Ruby.…Exceptions are classes for handling exceptional events.…What are those exceptional events?…We'll they're things that we're not really expecting…to happen most of the time in our code.…Most often, that means errors.…So, for example, you might have come in contact…with a SyntaxError or a NoMethodError before.…These are types of exceptions.…You can refer to them as errors, but they belong…to a much larger class called "Exceptions" in Ruby.…And when we talk about exceptions we say…that we are "raising an exception" or our code…has "raised an exception" or "an exception has been raised".…
Ruby has many built in exception classes.…If you go into the Ruby documentation…and look up the Exception class,…you can scroll down and you'll see that there's a list…of all of the sub classes of the Exception class.…These are all the built-in exceptions…that are there for Ruby to use or for you to use.…You'll see there's things like NoMemoryError,…ScriptError and so on, and then there's StandardError,…
- Defining a custom class
- Working with instances of a class
- Class and instance attributes and methods
- Class inheritance
- Working with dates and times
- Using modules as namespaces and mixins
- Raising and handling exceptions
Skill Level Beginner
2. Class Attributes and Methods
4. Dates and Times
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.