共用方式為


ErrorCategory type

定義 ErrorCategory 的值。 可能的值包括:'userError'、'serverError'

type ErrorCategory = "usererror" | "servererror"