pub fn register_exception(
    first: bool,
    handler: ExceptionHandler
) -> SgxResult<Handle>