Class 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:
    Serialized Form
    • Constructor Detail

      • AddCodeException

        public AddCodeException​(String reasonType)
      • AddCodeException

        public AddCodeException​(String message,
                                String reasonType)
      • AddCodeException

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

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

      • 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.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object