# Exception Classes

## class X509Exception

```cangjie
public class X509Exception <: Exception {
    public init()
    public init(message: String)
}
```

Function: This exception type is thrown by the X509 package.

Parent Type:

- Exception

### init()

```cangjie
public init()
```

Function: Constructs an [X509Exception](x509_package_exceptions.md#class-x509exception) object.

### init(String)

```cangjie
public init(message: String)
```

Function: Constructs an [X509Exception](x509_package_exceptions.md#class-x509exception) object.

Parameters:

- message: String - The exception message.