Class MTException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mt.ecommerce.product.exception.MTException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CategoryNotFoundException
,ImageUploadException
,ProductNotFoundException
Base exception class for the e-commerce product module.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMTException
(String message) Constructs a new MTException with the specified detail message.MTException
(String message, Throwable cause) Constructs a new MTException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MTException
Constructs a new MTException with the specified detail message.- Parameters:
message
- the detail message
-
MTException
Constructs a new MTException with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause of the exception
-