    

 ## On this page

  

 

 # Class: PHXNoSuchCategoryException

 Last update: 16.07.2025 

**Package:** `com.phoenix_int.aserver.library`

**Class Hierarchy**

```
↳ java.lang.Object
  ↳ java.lang.Throwable
    ↳ java.lang.Exception
      ↳ com.phoenix_int.aserver.library.PHXNoSuchCategoryException

```

**Implemented Interfaces**

- `java.io.Serializable`

---

**Declaration**

```java
public class PHXNoSuchCategoryException
extends java.lang.Exception

```

An exception that is thrown when an invalid class category is specified.

## See Also

- [Serialized Form](../../../../serialized-form.md)

## Constructor Summary

Constructor and Description`PHXNoSuchCategoryException(java.lang.String category)``PHXNoSuchCategoryException(java.lang.String msg, java.lang.String category)`  
Constructor for this exception containing both a specific message and the category which could not be found.`PHXNoSuchCategoryException(java.lang.String msg, java.lang.String category, java.lang.Exception ex)`  
Constructor which takes a message, a category, and an inner exception.## Method Summary

Modifier and TypeMethod and Description`java.lang.String``getInvalidCategory()`  
Retrieves the category name that was invalid### Methods inherited from class java.lang.Throwable

`addSuppressed`, `fillInStackTrace`, `getCause`, `getLocalizedMessage`, `getMessage`, `getStackTrace`, `getSuppressed`, `initCause`, `printStackTrace`, `printStackTrace`, `printStackTrace`, `setStackTrace`, `toString`

### Methods inherited from class java.lang.Object

`clone`, `equals`, `finalize`, `getClass`, `hashCode`, `notify`, `notifyAll`, `wait`, `wait`, `wait`

## Constructor Detail

### PHXNoSuchCategoryException

```java
public PHXNoSuchCategoryException(java.lang.String category)

```

**Parameters:**

- `category` - The category name that was invalid

### PHXNoSuchCategoryException

```java
public PHXNoSuchCategoryException(java.lang.String msg, 
                                  java.lang.String category)

```

Constructor for this exception containing both a specific message and the category which could not be found.

**Parameters:**

- `msg` - The message associated with this exception.
- `category` - The category which couldn't be found.

### PHXNoSuchCategoryException

```java
public PHXNoSuchCategoryException(java.lang.String msg, 
                                  java.lang.String category, 
                                  java.lang.Exception ex)

```

Constructor which takes a message, a category, and an inner exception.

**Parameters:**

- `msg` - The message associated with this specific exception.
- `category` - The category which could not be found.
- `ex` - The inner exception.

## Method Detail

### getInvalidCategory

```java
public java.lang.String getInvalidCategory()

```

Retrieves the category name that was invalid

**Returns:**

- The invalid category name