2023-06-20 02:38:57 +08:00
|
|
|
# RuntimeError
|
|
|
|
|
|
|
|
Namespace: LLama.Exceptions
|
|
|
|
|
2024-03-31 20:44:29 +08:00
|
|
|
Base class for LLamaSharp runtime errors (i.e. errors produced by llama.cpp, converted into exceptions)
|
|
|
|
|
2023-06-20 02:38:57 +08:00
|
|
|
```csharp
|
|
|
|
public class RuntimeError : System.Exception, System.Runtime.Serialization.ISerializable
|
|
|
|
```
|
|
|
|
|
|
|
|
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception) → [RuntimeError](./llama.exceptions.runtimeerror.md)<br>
|
|
|
|
Implements [ISerializable](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.iserializable)
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
### **TargetSite**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public MethodBase TargetSite { get; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[MethodBase](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodbase)<br>
|
|
|
|
|
|
|
|
### **Message**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public string Message { get; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
|
|
|
|
|
|
|
|
### **Data**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public IDictionary Data { get; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[IDictionary](https://docs.microsoft.com/en-us/dotnet/api/system.collections.idictionary)<br>
|
|
|
|
|
|
|
|
### **InnerException**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public Exception InnerException { get; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception)<br>
|
|
|
|
|
|
|
|
### **HelpLink**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public string HelpLink { get; set; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
|
|
|
|
|
|
|
|
### **Source**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public string Source { get; set; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
|
|
|
|
|
|
|
|
### **HResult**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public int HResult { get; set; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
|
|
|
|
|
|
|
|
### **StackTrace**
|
|
|
|
|
|
|
|
```csharp
|
|
|
|
public string StackTrace { get; }
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Property Value
|
|
|
|
|
|
|
|
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
|
|
|
|
|
|
|
|
## Constructors
|
|
|
|
|
|
|
|
### **RuntimeError(String)**
|
|
|
|
|
2024-03-31 20:44:29 +08:00
|
|
|
Create a new RuntimeError
|
|
|
|
|
2023-06-20 02:38:57 +08:00
|
|
|
```csharp
|
|
|
|
public RuntimeError(string message)
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
`message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
|