writeToParcel

open override fun writeToParcel(dest: Parcel, flags: Int)

Serializes the error using the version/size envelope expected by clients.