specialize error data type