add BatchRuntimeException class and other updates from spec API.