Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • None of the exceptions defined in AsterixDB supports a zero-parameter constructor nor a single string-parameter constructor;
  • In all constructors of the root level exception classes, there should be an error code parameter;
  • No Usually, no further exceptions should be thrown from constructing an exception for a caught exception that is defined in AsterixDB. Otherwise, the exception handling will be complicated. But there is one outlier scenario, i.e., you want to make end users feel more comfortable with the error messages.
  • All message templates should be tested.
  • Any exceptions that are thrown from the codebase below the asterixdb directory should be RuntimeDataException or CompilationException, or their derivatives.

  • New error messages should not be defined in the source code. Instead, they should live in properties files that map error codes to error messages. Existing error messages that are defined in the source code should be migrated to properties files gradually.

...