You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.exceptions.runtimeerror.md 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # RuntimeError
  2. Namespace: LLama.Exceptions
  3. Base class for LLamaSharp runtime errors (i.e. errors produced by llama.cpp, converted into exceptions)
  4. ```csharp
  5. public class RuntimeError : System.Exception, System.Runtime.Serialization.ISerializable
  6. ```
  7. 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>
  8. Implements [ISerializable](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.iserializable)
  9. ## Properties
  10. ### **TargetSite**
  11. ```csharp
  12. public MethodBase TargetSite { get; }
  13. ```
  14. #### Property Value
  15. [MethodBase](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.methodbase)<br>
  16. ### **Message**
  17. ```csharp
  18. public string Message { get; }
  19. ```
  20. #### Property Value
  21. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  22. ### **Data**
  23. ```csharp
  24. public IDictionary Data { get; }
  25. ```
  26. #### Property Value
  27. [IDictionary](https://docs.microsoft.com/en-us/dotnet/api/system.collections.idictionary)<br>
  28. ### **InnerException**
  29. ```csharp
  30. public Exception InnerException { get; }
  31. ```
  32. #### Property Value
  33. [Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception)<br>
  34. ### **HelpLink**
  35. ```csharp
  36. public string HelpLink { get; set; }
  37. ```
  38. #### Property Value
  39. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  40. ### **Source**
  41. ```csharp
  42. public string Source { get; set; }
  43. ```
  44. #### Property Value
  45. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  46. ### **HResult**
  47. ```csharp
  48. public int HResult { get; set; }
  49. ```
  50. #### Property Value
  51. [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
  52. ### **StackTrace**
  53. ```csharp
  54. public string StackTrace { get; }
  55. ```
  56. #### Property Value
  57. [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
  58. ## Constructors
  59. ### **RuntimeError(String)**
  60. Create a new RuntimeError
  61. ```csharp
  62. public RuntimeError(string message)
  63. ```
  64. #### Parameters
  65. `message` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>