What is the relationship between SBError and ChatError

I used to create an SBDErrorCode instance from SBDError.code, but I’m wondering if the same logic works by creating a ChatError instance using the SBError.code value as the raw value.

I’m guessing that’s how it would work, but it’s not very clear just looking at the docs.