We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508fb30 commit 4ffd58aCopy full SHA for 4ffd58a
doc/source/user_guide/ansys_exceptions.rst
@@ -23,12 +23,12 @@ You can import exception classes and use the predefined exceptions directly in y
23
24
You can also extend the base exception class to define your own custom exceptions. This allows you to create error types specific to your needs:
25
26
-```python
27
-class CustomError(AnsysError):
28
- """A custom exception for specific error handling."""
+.. code:: python
29
30
- pass
+ class CustomError(AnsysError):
+ """A custom exception for specific error handling."""
31
+ pass
32
33
-raise CustomError("This is a custom error message.")
+ raise CustomError("This is a custom error message.")
34
```
0 commit comments