export default class VKApiError extends Error { constructor ( readonly errorCode , readonly errorMsg , readonly requestParams ) { super ( errorMsg || errorCode . toString ( ) ) ; } static deserialize ( raw ) { return new VKApiError ( raw [ 'error_code' ] , raw [ 'error_msg' ] , raw [ 'request_params' ] ) ; } }