# NoSuchPodDefinitionException class

Exception thrown when a `PodFactory` is asked for a pod instance by name, and no definition for that pod name exists.

Example:

    throw NoSuchPodDefinitionException('myService');

Inheritance
  - Object
  - Error
  - Throwable
  - NestedRuntimeException
  - PodException
  - NoSuchPodDefinitionException
Available extensions
  - ErrorExtensions
  - ExceptionExtensions
  - ThrowableExtensions

## Constructors

NoSuchPodDefinitionException.byName(String name)
  Create a new NoSuchPodDefinitionException by pod name.
NoSuchPodDefinitionException.byNameWithMessage(String name, String message)
  Create a new NoSuchPodDefinitionException by pod name with custom message.
NoSuchPodDefinitionException.byResolvableType(ResolvableType type)
  Create a new NoSuchPodDefinitionException by resolvable type.
NoSuchPodDefinitionException.byResolvableTypeWithMessage(ResolvableType type, String message)
  Create a new NoSuchPodDefinitionException by resolvable type with custom message.
NoSuchPodDefinitionException.byType(Class type)
  Create a new NoSuchPodDefinitionException by type.
NoSuchPodDefinitionException.byTypeWithMessage(Class type, String message)
  Create a new NoSuchPodDefinitionException by type with custom message.

## Properties

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

## Methods

contains(Class? exType) → bool
  Checks if this exception or any exception in its cause chain is of the specified type.
  inherited
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
getNumberOfPodsFound() → int
  Number of pods found when only one was expected. For a normal NoSuchPodDefinitionException, always `0`.
getPodName() → String?
  Return the name of the missing pod, if lookup by name failed.
getPodType() → Class?
  Return the required type of the missing pod, if lookup by type failed.
getResolvableType() → ResolvableType?
  Return the required ResolvableType of the missing pod, if lookup by type failed.
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.
  inherited

## Operators

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