Let's go ahead and add a custom error class and raise accordingly -- keep it namespaced though: 

```ruby
class SSHKey
  class PublicKeyError < StandardError; end
end
```