# LoadWeightsFailedException
Namespace: LLama.Exceptions
Loading model weights failed
```csharp
public class LoadWeightsFailedException : RuntimeError, 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) → [LoadWeightsFailedException](./llama.exceptions.loadweightsfailedexception.md)
Implements [ISerializable](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.iserializable)
## Properties
### **ModelPath**
The model path which failed to load
```csharp
public string ModelPath { get; }
```
#### Property Value
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **TargetSite**
```csharp
public MethodBase TargetSite { get; }
```
#### Property Value
[MethodBase](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodbase)
### **Message**
```csharp
public string Message { get; }
```
#### Property Value
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Data**
```csharp
public IDictionary Data { get; }
```
#### Property Value
[IDictionary](https://docs.microsoft.com/en-us/dotnet/api/system.collections.idictionary)
### **InnerException**
```csharp
public Exception InnerException { get; }
```
#### Property Value
[Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception)
### **HelpLink**
```csharp
public string HelpLink { get; set; }
```
#### Property Value
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **Source**
```csharp
public string Source { get; set; }
```
#### Property Value
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
### **HResult**
```csharp
public int HResult { get; set; }
```
#### Property Value
[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)
### **StackTrace**
```csharp
public string StackTrace { get; }
```
#### Property Value
[String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
## Constructors
### **LoadWeightsFailedException(String)**
```csharp
public LoadWeightsFailedException(string modelPath)
```
#### Parameters
`modelPath` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)