Sha256: 6ceb069ca792cb1d490caf27ed2826bd39c0c21fb236b0917dc918f55fff9a23
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true class Critic::AuthorizationDenied < Critic::Error DEFAULT_MESSAGE = 'Authorization denied' attr_reader :authorization def initialize(authorization) @authorization = authorization message = if authorization.messages.any? authorization.messages.join(',') else DEFAULT_MESSAGE end super(message) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
critic-0.2.0 | lib/critic/authorization_denied.rb |