ServiceExtensionResponse class - dart:developer library (original) (raw)

A response to a service protocol extension RPC.

If the RPC was successful, use ServiceExtensionResponse.result, otherwise use ServiceExtensionResponse.error.

Constructors

ServiceExtensionResponse.error(int errorCode, String errorDetail)

Creates an error response to a service protocol extension RPC.

ServiceExtensionResponse.result(String result)

Creates a successful response to a service protocol extension RPC.

Properties

errorCodeint?

The error code associated with a failed service protocol extension RPC.

final

errorDetailString?

The details of a failed service protocol extension RPC.

final

hashCodeint

The hash code for this object.

no setterinherited

resultString?

The result of a successful service protocol extension RPC.

final

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

Methods

isError()→ bool

Determines if this response represents an error.

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Constants

extensionError → const int

Generic extension error code.

extensionErrorMax → const int

Maximum extension provided error code.

extensionErrorMin → const int

Minimum extension provided error code.

invalidParams → const int

Invalid method parameter(s) error code.