httpError class final

Configures an HTTP error response for a cloud function.

Annotations
  • @Target({TargetKind.library, TargetKind.function})

Constructors

httpError(int statusCode, Type type, [Type? type1, Type? type2, Type? type3, Type? type4, Type? type5, Type? type6, Type? type7])
Configures an HTTP error response for a cloud function.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The status code returned when any of the specified types are thrown.
final
type Type
The error type this configuration applies to.
final
type1 Type?
Additional error type this configuration applies to.
final
type2 Type?
Additional error type this configuration applies to.
final
type3 Type?
Additional error type this configuration applies to.
final
type4 Type?
Additional error type this configuration applies to.
final
type5 Type?
Additional error type this configuration applies to.
final
type6 Type?
Additional error type this configuration applies to.
final
type7 Type?
Additional error type this configuration applies to.
final

Methods

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