Class InvalidOperationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.thiagorigonatti.capitalgains.exception.InvalidOperationException
All Implemented Interfaces:
Serializable

public class InvalidOperationException extends RuntimeException
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 Details

    • InvalidOperationException

      public InvalidOperationException(String operation)
      Constructs an InvalidOperationException with a detailed error message.
      Parameters:
      operation - the invalid operation name encountered