Exception: RHC::Exception
- Defined in:
- lib/rhc/exceptions.rb
Direct Known Subclasses
AdditionalStorageArgumentsException, AdditionalStorageRemoveException, AdditionalStorageValueException, AliasNotFoundException, AppCloneNotSupportedException, ArgumentNotValid, CartridgeNotFoundException, CartridgeNotScalableException, ChangeMembersOnResourceNotSupported, ConfirmationError, ConnectionFailed, DeploymentNotFoundException, DeploymentsNotSupportedException, EnvironmentVariableNotFoundException, EnvironmentVariableNotProvidedException, EnvironmentVariablesNotSupportedException, FileOrPathNotFound, GitException, IncompatibleDeploymentTypeException, InvalidSSHExecutableException, InvalidURIException, JenkinsNotInstalledOnServer, KeyDataInvalidException, KeyFileAccessDeniedException, KeyFileNotExistentException, KeyNotFoundException, MemberNotFoundException, MembersNotSupported, MissingScalingValueException, MultipleCartridgesException, NoDomainsForUser, NoPortsToForwardException, PermissionDeniedException, PortForwardFailedException, SSHAuthenticationFailed, SSHCommandFailed, SnapshotRestoreException, SnapshotSaveException, TeamNotFoundException, TeamsNotSupportedException, UnsupportedError, Vendor::Zlib::Error, Vendor::Zlib::GzipFile::Error
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = 1) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message = nil, code = 1) ⇒ Exception
Returns a new instance of Exception.
4 5 6 7 |
# File 'lib/rhc/exceptions.rb', line 4 def initialize(=nil, code=1) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rhc/exceptions.rb', line 3 def code @code end |