Sha256: e11254762dde2f96b95cbdff761bf70f117add35533df08c954e7d64fea36d37

Contents?: true

Size: 887 Bytes

Versions: 22

Compression:

Stored size: 887 Bytes

Contents

ERROR

  DESCRIPTION
    Gloo has a special 'error' variable that's not part of the normal
    object heap.  The error will be empty most of the time, but
    if a command results in an error, this variable will hold the
    error message until the next command is executed.  The error
    is a string and can be accessed by simply referring to the
    path-name 'error'.

  EXAMPLE
    To see the last error:

      > show error

    To run a command that generates an error:

      > put 3 into
      'put' must include 'into' target

    Then, showing the error

      > show error
      'put' must include 'into' target

    But, as mentioned, the next command will clear out the last error.
    If you need to keep track of the result of a command, you should
    put the error into another object.

      > create err as string
      > put 3 into
      > put error into err
      

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
gloo-lang-1.0.2 lib/gloo_lang/help/core/error.txt
gloo-1.0.0 lib/gloo/help/core/error.txt
gloo-lang-1.0.1 lib/gloo_lang/help/core/error.txt
gloo-lang-1.0.0 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.11 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.10 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.9 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.8 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.7 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.6 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.5 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.4 lib/gloo_lang/help/core/error.txt
gloo-lang-0.9.3 lib/gloo_lang/help/core/error.txt
gloo-0.8.0 lib/gloo/help/core/error.txt
gloo-0.7.7 lib/gloo/help/core/error.txt
gloo-0.7.6 lib/gloo/help/core/error.txt
gloo-0.7.5 lib/gloo/help/core/error.txt
gloo-0.7.4 lib/gloo/help/core/error.txt
gloo-0.7.3 lib/gloo/help/core/error.txt
gloo-0.7.2 lib/gloo/help/core/error.txt