Is there a way to intentionally throw a proper D1 error that has an `error.cause` attribute?

Is there a way to intentionally throw a proper D1 error that has an
error.cause
attribute?
Was this page helpful?