PodCreationException class

Exception thrown when a pod cannot be created.

This typically wraps the underlying error or misconfiguration that occurred during the creation of a pod in the context.

Example:

throw PodCreationException('myService', 'Missing dependency');
Inheritance
Implementers
Available extensions

Constructors

PodCreationException(String msg, {Throwable? cause})
Create a new PodCreationException with a simple message.
PodCreationException.withPodName(String name, String msg, {Throwable? cause})
Create a new PodCreationException with a pod name.
PodCreationException.withResource(String? resourceDescription, String? name, String? msg, {Throwable? cause})
Create a new PodCreationException with resource description and pod name.

Properties

cause → Throwable?
The underlying cause of this exception, if any.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String?
The descriptive message for this exception.
finalinherited
name → String?
final
resourceDescription → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited

Methods

addRelatedCause(Throwable ex) → void
Add a related cause to this pod creation exception, not being a direct cause of the failure but having occurred earlier in the creation of the same pod instance.
contains(Class? exType) → bool
Checks if this exception or any exception in its cause chain is of the specified type.
override
getCause() → Throwable?
The cause of this exception, if any.
inherited
getMessage() → String
The message associated with this exception.
inherited
getMostSpecificCause() → Throwable
Returns the most specific cause of this exception.
inherited
getPodName() → String?
Return the name of the pod requested, if any.
getRelatedCauses() → List<Throwable>?
Return the related causes, if any.
getResourceDescription() → String?
Return the description of the resource that the pod definition came from, if any.
getRootCause() → Throwable?
Returns the root cause of this exception by traversing the cause chain.
inherited
getStackTrace() → StackTrace
The stack trace associated with this exception.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printStackTrace([bool useErrorPrint = false]) → void

Available on Error, provided by the ErrorExtensions extension

Prints the error along with its stack trace.
printStackTrace([StackTrace? stacktrace, bool useErrorPrint = false]) → void

Available on Exception, provided by the ExceptionExtensions extension

Prints the exception and optional StackTrace if available.
printStackTrace([bool useErrorPrint = false]) → void

Available on Throwable, provided by the ThrowableExtensions extension

Extension on Throwable to support printing stack traces in a unified way.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited