---
title: "System::Text::Json::ThrowHelper::ThrowInvalidOperationException method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/throwhelper/throwinvalidoperationexception/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use ThrowInvalidOperationException method of System::Text::Json::ThrowHelper class in C++."
---

## ThrowHelper::ThrowInvalidOperationException(ExceptionResource, int32_t, int32_t, uint8_t, JsonTokenType) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException(ExceptionResource resource, int32_t currentDepth, int32_t maxDepth, uint8_t token, JsonTokenType tokenType)
```

## See Also

* Enum [ExceptionResource](../../exceptionresource/)
* Enum [JsonTokenType](../../jsontokentype/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowInvalidOperationException(int32_t, int32_t) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException(int32_t currentDepth, int32_t maxDepth)
```

## See Also

* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowInvalidOperationException(String) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException(String message)
```

## See Also

* Class [String](../../../system/string/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
