Class AddCodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.cartoperation.exception.AddCodeException
All Implemented Interfaces:
Serializable

public final class AddCodeException extends RuntimeException
Exception thrown when adding a promotional code to the Cart fails.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • AddCodeException

      public AddCodeException(String reasonType)
    • AddCodeException

      public AddCodeException(String message, String reasonType)
    • AddCodeException

      public AddCodeException(String message, Throwable cause, String reasonType)
    • AddCodeException

      public AddCodeException(Throwable cause, String reasonType)
    • AddCodeException

      public AddCodeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String reasonType)
  • Method Details

    • getReasonType

      public String getReasonType()
      The reason type for why the code could not be added.
      Returns:
      The reason type for why the code could not be added.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Throwable