QHMessage Structure

Combines a hresult code with a string format message. Used to build the message catalog which in turn will make it possible to look up help text.

Definition

Namespace: Quine.HRCatalog
Assembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
public readonly struct QHMessage
Inheritance
Object    ValueType    QHMessage

Remarks

It is recommended that custom, user-facing exceptions take an instance of QHMessage as argument. The exception's constructor must set HResult to HResult casted to int. If [!:ExceptionMessage] contains format parameters, the custom exception must override Message property to fill in the parameters.

Properties

EventId Conversion to EventId for interpreting traces.

Methods

Critical 
Error 
Format Convenience method that forwards Message and args to Format(String, Object).
Information 
Warning 

Fields

HResult Message code.
Message Message text prefixed with error codes in standard format. The text must be suitable for sending to Format(String, Object).

See Also