ServiceExtensionResponse class

A response to a service protocol extension RPC.

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

Constants

extensionError → dynamic

Generic extension error code.

-32000
extensionErrorMax → dynamic

Maximum extension provided error code.

-32000
extensionErrorMin → dynamic

Minimum extension provided error code.

-32016
invalidParams → dynamic

Invalid method parameter(s) error code.

-32602
kExtensionError → dynamic
@deprecated

Generic extension error code.

extensionError
kExtensionErrorMax → dynamic
@deprecated

Maximum extension provided error code.

extensionErrorMax
kExtensionErrorMin → dynamic
@deprecated

Minimum extension provided error code.

extensionErrorMin
kInvalidParams → dynamic
@deprecated

Invalid method parameter(s) error code.

invalidParams

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

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

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.

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