Class InvalidOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.thiagorigonatti.capitalgains.exception.InvalidOperationException
- All Implemented Interfaces:
Serializable
Exception thrown when an unrecognized operation type is encountered during processing.
This is a domain-specific RuntimeException used to enforce valid values
for the operation field in stock market data, typically limited to \"buy\" and \"sell\".
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidOperationException(String operation) Constructs anInvalidOperationExceptionwith a detailed error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidOperationException
Constructs anInvalidOperationExceptionwith a detailed error message.- Parameters:
operation- the invalid operation name encountered
-