you need to call Error.captureStackTrace(this, PartialResultError) (which is basically what the base constructor does)