ErrorSink.OnError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnError(RazorError) |
Tracks the given |
OnError(SourceLocation, String, Int32) |
Creates and tracks a new RazorError. |
OnError(RazorError)
Tracks the given error
.
public:
void OnError(Microsoft::AspNetCore::Razor::RazorError ^ error);
public void OnError (Microsoft.AspNetCore.Razor.RazorError error);
member this.OnError : Microsoft.AspNetCore.Razor.RazorError -> unit
Public Sub OnError (error As RazorError)
Parameters
- error
- RazorError
The RazorError to track.
Applies to
OnError(SourceLocation, String, Int32)
Creates and tracks a new RazorError.
public:
void OnError(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ message, int length);
public void OnError (Microsoft.AspNetCore.Razor.SourceLocation location, string message, int length);
member this.OnError : Microsoft.AspNetCore.Razor.SourceLocation * string * int -> unit
Public Sub OnError (location As SourceLocation, message As String, length As Integer)
Parameters
- location
- SourceLocation
SourceLocation of the error.
- message
- String
A message describing the error.
- length
- Int32
The length of the error.