forked from SAML-Toolkits/ruby-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use Exception, use StandardError
It's bad Ruby practice to have Error classes inherit directly from Exception, or to raise instances of Exception itself. It is highly recommended that any custom error classes inherit instead from StandardError. StandardError is also the go-to exception class for when you need to raise an error without a custom class. Signed-off-by: David Celis <[email protected]>
- Loading branch information
1 parent
c0f38a1
commit 05376ed
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module Onelogin | ||
module Saml | ||
class ValidationError < Exception | ||
class ValidationError < StandardError | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters