W3cubDocs

/Dart 2

ServiceExtensionResponse class

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
final
The error code associated with a failed service protocol extension RPC.
errorDetailString
final
The details of a failed service protocol extension RPC.
resultString
final
The result of a successful service protocol extension RPC.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

isError() → bool
Determines if this response represents an error.
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

extensionError → const int
Generic extension error code.
-32000
extensionErrorMax → const int
Maximum extension provided error code.
-32000
extensionErrorMin → const int
Minimum extension provided error code.
-32016
invalidParams → const int
Invalid method parameter(s) error code.
-32602
kExtensionError → const int
Generic extension error code.
extensionError
kExtensionErrorMax → const int
Maximum extension provided error code.
extensionErrorMax
kExtensionErrorMin → const int
Minimum extension provided error code.
extensionErrorMin
kInvalidParams → const int
Invalid method parameter(s) error code.
invalidParams

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-developer/ServiceExtensionResponse-class.html