MCPcopy Create free account
hub / github.com/Effect-TS/effect / addressError

Function addressError

packages/effect/src/net/NetAddress.ts:852–853  ·  view source on GitHub ↗
(input: unknown, message: string)

Source from the content-addressed store, hash-verified

850export const ipv4Broadcast: Ipv4Address = makeIpv4(0xffffffff)
851
852const addressError = (input: unknown, message: string): Result.Result<never, NetAddressError> =>
853 Result.fail(new NetAddressError({ input, message }))
854
855// Checks by index because `every` skips holes in sparse arrays.
856const allIntegersInRange = (values: ReadonlyArray<number>, max: number): boolean => {

Callers 15

ipv4FromOctetsFunction · 0.85
ipv6FromSegmentsFunction · 0.85
macAddressFromOctetsFunction · 0.85
macAddressFromStringFunction · 0.85
macAddressFromInputFunction · 0.85
ipv4FromStringFunction · 0.85
parseIpv6SegmentsFunction · 0.85
ipFromInputFunction · 0.85
ipv4FromInputFunction · 0.85
ipv6FromInputFunction · 0.85
inetAddressV4Function · 0.85

Calls 1

failMethod · 0.65

Tested by

no test coverage detected