Package convex.cli

Class ExitCodes

java.lang.Object
convex.cli.ExitCodes

public class ExitCodes extends Object
Exit codes See sysexits.h from FreeBSD for guides TODO: may need to make partially platform-specific?
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Something was not configured properly
    static final int
    Error in input data, e.g. badly formatted
    static final int
    General catch-all error, probably IO
    static final int
    Interrupt with graceful shutdown fromn interrupt Posix standard exit code 128 + 2 (SIGINT)
    static final int
    IO Error
    static final int
    No host exists (probably not a peer?)
    static final int
    No input file / not readable
    static final int
    Lack of permissions to complete an application operation
    static final int
    No user exists (probably a bad account?)
    static final int
    Fatal uncaught software error, should be reported as bug
    static final int
    Exit code for success (0)
    static final int
    Temporary failure, e.g. a timeout
    static final int
    Usage error (64 as per )
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SUCCESS

      public static final int SUCCESS
      Exit code for success (0)
      See Also:
    • ERROR

      public static final int ERROR
      General catch-all error, probably IO
      See Also:
    • USAGE

      public static final int USAGE
      Usage error (64 as per )
      See Also:
    • DATAERR

      public static final int DATAERR
      Error in input data, e.g. badly formatted
      See Also:
    • NOINPUT

      public static final int NOINPUT
      No input file / not readable
      See Also:
    • NOUSER

      public static final int NOUSER
      No user exists (probably a bad account?)
      See Also:
    • NOHOST

      public static final int NOHOST
      No host exists (probably not a peer?)
      See Also:
    • SOFTWARE

      public static final int SOFTWARE
      Fatal uncaught software error, should be reported as bug
      See Also:
    • IOERR

      public static final int IOERR
      IO Error
      See Also:
    • TEMPFAIL

      public static final int TEMPFAIL
      Temporary failure, e.g. a timeout
      See Also:
    • NOPERM

      public static final int NOPERM
      Lack of permissions to complete an application operation
      See Also:
    • CONFIG

      public static final int CONFIG
      Something was not configured properly
      See Also:
    • INTERRUPT

      public static final int INTERRUPT
      Interrupt with graceful shutdown fromn interrupt Posix standard exit code 128 + 2 (SIGINT)
      See Also:
  • Constructor Details

    • ExitCodes

      public ExitCodes()
  • Method Details

    • getExitCode

      public static int getExitCode(Throwable t)