Share via


ErrorSink.OnError Method

Definition

Overloads

OnError(RazorError)

Tracks the given error.

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.

Applies to