app/exceptions/client_model_mismatch.rb

Summary

Maintainability
A
0 mins
Test Coverage

Inherit from RuntimeError instead of Exception.
Open

class ClientModelMismatch < Exception

This cop looks for error classes inheriting from Exception and its standard library subclasses, excluding subclasses of StandardError. It is configurable to suggest using either RuntimeError (default) or StandardError instead.

Example: EnforcedStyle: runtime_error (default)

# bad

class C < Exception; end

# good

class C < RuntimeError; end

Example: EnforcedStyle: standard_error

# bad

class C < Exception; end

# good

class C < StandardError; end

There are no issues that match your filters.

Category
Status