```
irb(main):001:0> class MyError < Exception; end
=> nil
irb(main):002:0> err = MyError.new
=> #<MyError: MyError>
irb(main):003:0> Exception === err
=> true
```