Class BeanDuplicateException

All Implemented Interfaces:
Serializable, HasFriendlyErrorMessage

public class BeanDuplicateException extends AnchorFriendlyRuntimeException
An exception occurs when the duplication of a bean fails.

We keep this unchecked, as if a bean is properly configured it should not be thrown.

As we already do checks to see if a bean is properly configured it should never (or almost never) occur.

We don't want to make needlessly dirty code, as bean duplication occurs, so we keep it as a runtime exception.

Author:
Owen Feehan
See Also:
  • Constructor Details

    • BeanDuplicateException

      public BeanDuplicateException(String message)
      Creates with a message only.
      Parameters:
      message - the message.
    • BeanDuplicateException

      public BeanDuplicateException(Throwable cause)
      Creates with a cause only.
      Parameters:
      cause - the cause.
    • BeanDuplicateException

      public BeanDuplicateException(String message, Throwable cause)
      Creates with a message and cause.
      Parameters:
      message - the message.
      cause - the cause.