Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    @minecraft/server-ui

    FormRejectError

    A show() promise rejects with this when the answer couldn't be read.

    1 property
    On this page

    Class in @minecraft/server-ui

    Extends Error

    A show() promise rejects with this when the answer couldn’t be read.

    import { FormRejectError } from '@minecraft/server-ui';
    import { FormRejectError } from '@minecraft/server-ui';
    try {
    // Call the API here.
    } catch (error) {
    if (error instanceof FormRejectError) {
    console.warn(`${error.name}: ${error.message}`);
    } else {
    throw error;
    }
    }
    import { FormRejectError } from '@minecraft/server-ui';
    try {
    // Call the API here.
    }
    catch (error) {
    if (error instanceof FormRejectError) {
    console.warn(`${error.name}: ${error.message}`);
    }
    else {
    throw error;
    }
    }

    read-only

    readonly reason: FormRejectReason;