packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/error/system.json

{
  "name": "hydra.core.dsl.error.system",
  "metadata": {"description": "DSL functions for hydra.core.error.system", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.error.system"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.error.system"},
    {"module": "hydra.core.decode.error.system"},
    {"module": "hydra.core.file"},
    {"module": "hydra.core.dsl.file"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorSystemError",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedName"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedName",
                "body": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL name token for hydra.core.error.system.SystemError"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorCommandNotFound",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.file.FilePath"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "POSIX ENOENT: the executable named by Command.program does not exist or is not found on PATH. Reported by the exec family (XSH, https://pubs.opengroup.org/onlinepubs/9799919799/functions/execve.html)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.file.FilePath"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "POSIX ENOENT: the executable named by Command.program does not exist or is not found on PATH. Reported by the exec family (XSH, https://pubs.opengroup.org/onlinepubs/9799919799/functions/execve.html)"}}}]}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "inject",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Injection",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}},
                                {
                                  "name": "field",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {
                                          "name": "name",
                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "commandNotFound"}}}}},
                                        {
                                          "name": "term",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL injection for the commandNotFound variant of hydra.core.error.system.SystemError"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorPermissionDenied",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.file.FilePath"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {"string": "POSIX EACCES: the executable exists but is not executable, or a path component denies search permission"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.file.FilePath"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {"string": "POSIX EACCES: the executable exists but is not executable, or a path component denies search permission"}}}]}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "inject",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Injection",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}},
                                {
                                  "name": "field",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {
                                          "name": "name",
                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "permissionDenied"}}}}},
                                        {
                                          "name": "term",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL injection for the permissionDenied variant of hydra.core.error.system.SystemError"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorInvalidWorkingDirectory",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"variable": "hydra.core.file.FilePath"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {"literal": {"string": "POSIX ENOENT or ENOTDIR raised by the implied chdir() to Command.workingDirectory"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"variable": "hydra.core.file.FilePath"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {"literal": {"string": "POSIX ENOENT or ENOTDIR raised by the implied chdir() to Command.workingDirectory"}}}]}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "inject",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Injection",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}},
                                {
                                  "name": "field",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {
                                          "name": "name",
                                          "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "invalidWorkingDirectory"}}}}},
                                        {
                                          "name": "term",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL injection for the invalidWorkingDirectory variant of hydra.core.error.system.SystemError"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorInterrupted",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedTerm",
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "inject",
                      "term": {
                        "record": {
                          "typeName": "hydra.core.model.Injection",
                          "fields": [
                            {
                              "name": "typeName",
                              "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}},
                            {
                              "name": "field",
                              "term": {
                                "record": {
                                  "typeName": "hydra.core.model.Field",
                                  "fields": [
                                    {
                                      "name": "name",
                                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "interrupted"}}}}},
                                    {"name": "term", "term": {"inject": {"typeName": "hydra.core.model.Term", "field": {"name": "unit", "term": "unit"}}}}]}}}]}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL injection for the interrupted variant of hydra.core.error.system.SystemError"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.error.system.systemErrorOther",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {
                    "annotated": {
                      "body": {"literal": "string"},
                      "annotation": {
                        "map": [
                          {
                            "key": {"variable": "description"},
                            "value": {
                              "literal": {
                                "string": "Any other failure, carrying the host-provided error message verbatim (covers errno values not modeled above, such as EMFILE, ENOMEM, or E2BIG)"}}}]}}}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"variable": "hydra.core.error.system.SystemError"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "x",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {
                      "annotated": {
                        "body": {"literal": "string"},
                        "annotation": {
                          "map": [
                            {
                              "key": {"variable": "description"},
                              "value": {
                                "literal": {
                                  "string": "Any other failure, carrying the host-provided error message verbatim (covers errno values not modeled above, such as EMFILE, ENOMEM, or E2BIG)"}}}]}}}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "inject",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Injection",
                              "fields": [
                                {
                                  "name": "typeName",
                                  "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.error.system.SystemError"}}}}},
                                {
                                  "name": "field",
                                  "term": {
                                    "record": {
                                      "typeName": "hydra.core.model.Field",
                                      "fields": [
                                        {"name": "name", "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "other"}}}}},
                                        {
                                          "name": "term",
                                          "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "x"}}}}]}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL injection for the other variant of hydra.core.error.system.SystemError"}}}]}}}}}]}