Skip to content

Capacity Error

1 min read

Import: import system.collections;

CapacityError

Invalid reserve request; existing contents and capacity are preserved.

public class CapacityError: Error

constructor

Creates a capacity diagnostic without performing an allocation.

public constructor()

code

Stable code for negative or unsupported capacity requests.

public fun code(): string

message

Describes the accepted reserve domain.

public fun message(): string