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

## ThrowHelper::ThrowFormatException() method




```cpp
static void System::Text::Json::ThrowHelper::ThrowFormatException()
```

## See Also

* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowFormatException(DataType) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowFormatException(DataType dataType)
```

## See Also

* Enum [DataType](../../datatype/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowFormatException(NumericType) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowFormatException(NumericType numericType)
```

## See Also

* Enum [NumericType](../../numerictype/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
