ApiException({required this.errorCode, required this.errorMessage}) : apiExceptionType = ApiExceptionType.generic;