Exception: Bcome::Exception::Base
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Bcome::Exception::Base
- Defined in:
- lib/objects/exception/base.rb
Direct Known Subclasses
ArgumentErrorInvokingMethodFromCommmandLine, CanOnlySubselectOnInventory, CannotAuthenticateToGcp, CannotFindInternalRegistryKlass, CannotFindInventory, CannotFindSubselectionParent, CantFindKeyInCloudTags, CantFindKeyInMetadata, CantFindProxyHostByIdentifier, CantFindProxyHostByNamespace, CouldNotInitiateSshConnection, CouldNotInitiateSshConnectionThroughBackendProxy, CouldNotRetrieveTerraformOutput, DeprecationWarning, DuplicateCommandLineArgumentKey, Ec2DriverMissingAuthorizationKeys, Ec2DriverMissingProvisioningRegion, EmptyNamespaceTree, FailedToRunLocalCommand, GcpAuthServiceAccountMissingCredentials, Generic, InvalidBcomeBreadcrumb, InvalidBreadcrumb, InvalidContextCommand, InvalidGcpAuthenticationScheme, InvalidIdentifier, InvalidMachinesCacheConfig, InvalidMatcherQuery, InvalidMetaDataConfig, InvalidMetaDataEncryptionKey, InvalidNetworkConfig, InvalidNetworkDriverType, InvalidPortForwardRequest, InvalidProxyConfig, InvalidRegexpMatcherInRegistry, InvalidRegistryArgumentType, InvalidRegistryCommandNameLength, InvalidRegistryDataConfig, InvalidRestrictionKeyInRegistry, InvalidSshConfig, InventoriesCannotHaveSubViews, MalformedCommandLineArguments, MethodInvocationRequiresParameter, MethodNameConflictInRegistry, MissingArgumentForRegistryCommand, MissingDescriptionOnView, MissingExecuteOnRegistryObject, MissingGcpAuthenticationScheme, MissingGcpServiceAccountCredentialsFilename, MissingGcpServiceScopes, MissingIdentifierOnView, MissingInventoryContributors, MissingIpaddressOnServer, MissingNetworkConfig, MissingOrInvalidClientSecrets, MissingParamsForRsync, MissingParamsForScp, MissingSubselectionKey, MissingTypeOnView, NoNodeFoundForBreadcrumb, NoNodeNamedByIdentifier, NodeIdentifiersMustBeUnique, OrchestrationScriptDoesNotExist, ProxyHostNodeDoesNotHavePublicIp, UnknownDynamicServerType, UnknownMethodForNamespace, UserOrchestrationError
Instance Method Summary collapse
-
#initialize(message_suffix = nil) ⇒ Base
constructor
A new instance of Base.
- #message ⇒ Object
- #pretty_display(show_backtrace = false) ⇒ Object
Constructor Details
#initialize(message_suffix = nil) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/objects/exception/base.rb', line 6 def initialize( = nil) @message_suffix = end |
Instance Method Details
#message ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/objects/exception/base.rb', line 10 def "#{}#{if @message_suffix + (!.empty? ? ':' : '').to_s + " #{@message_suffix}" else '' end}" end |
#pretty_display(show_backtrace = false) ⇒ Object
18 19 20 21 22 |
# File 'lib/objects/exception/base.rb', line 18 def pretty_display(show_backtrace = false) puts "\n" + .error print backtrace.join("\n") if show_backtrace print "\n" end |