Error
A mutable collection of values representing information about some error.
Constructors
Properties
Actions
#Gets the collection of actions this error exposes. Append actions to this collection to give the user tools for dealing with the error.
Context
#Gets the context or title for this error. This ought to inform the user of the area of code from which this error stems. The context may only be set from the constructor.
Exception
#Gets the exception for this error, if any. The exception may only be assigned at construction.
Explanation
#Gets or sets the human-friendly explanation of this error. This is typically a translation of the Message field into basic human natural language.
Location
#Gets or sets the location text for this error. This would typically be the filename and linenumber of the exception: PluginServer.cs line 397
Message
#Gets or sets the message of this error. This is typically the same as the Exception.Message of the Exception associated with this error. It is meant to be exact and informative to the developer, not the user.
Origin
#Gets or sets the origin text for this error. This would typically be the name of the type and method which threw the exception.
Methods
SetOrigin
#Assign the Origin field. This method automatically inserts dots between the elements.
Parameters:
| elements (params string[]) | Namespace, type and method elements. |
ShowModal
#Show this error and wait for it to be closed before returning.
Parameters:
| expandedFields (ErrorFields = ErrorFields.Common) |
ShowModal
#Show this error and wait for it to be closed before returning.
Parameters:
| location (PointF) | |
| expandedFields (ErrorFields = ErrorFields.Common) |