Constructor to initialize the exception with a specific message.
const GenericException(super.message, {super.details});