cruise
cruise copied to clipboard
Define & throw relevant exceptions when failure
Overall codebase in Cay actively throws RuntimeException
. It is useful for debug as the job fail fast if bugs exist, but sometimes we need to figure out which Exception was thrown exactly, especially for testing purpose. For example, catching RuntimeException
under some condition of failure, does not look good at all.