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

## ThrowHelper::GetInvalidOperationException(ExceptionResource, int32_t, int32_t, uint8_t, JsonTokenType) method




```cpp
static InvalidOperationException System::Text::Json::ThrowHelper::GetInvalidOperationException(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::GetInvalidOperationException(String, Exception) method




```cpp
static InvalidOperationException System::Text::Json::ThrowHelper::GetInvalidOperationException(String message, Exception innerException)
```

## See Also

* Class [String](../../../system/string/)
* Typedef [Exception](../../../system/exception/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
