Exception: Machinery::Errors::BuildDirectoryCreateError
- Inherits:
-
MachineryError
- Object
- StandardError
- MachineryError
- Machinery::Errors::BuildDirectoryCreateError
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(directory, user) ⇒ BuildDirectoryCreateError
constructor
A new instance of BuildDirectoryCreateError.
- #to_s ⇒ Object
Constructor Details
#initialize(directory, user) ⇒ BuildDirectoryCreateError
Returns a new instance of BuildDirectoryCreateError.
207 208 209 210 |
# File 'lib/exceptions.rb', line 207 def initialize(directory, user) @directory = directory @user = user end |
Instance Method Details
#to_s ⇒ Object
212 213 214 215 |
# File 'lib/exceptions.rb', line 212 def to_s "Could not create build directory '#{@directory}' because the user '#{@user}' does not " \ "have sufficient permissions." end |