keecode logokeecode
70

Software Error

Internal software error

Application

Exit Code Information

Exit Code

70

Name

Software Error

Category

Application

Usage Context

Internal error in the software

Common Usage

Bash Script

#!/bin/bash

if [ condition ]; then
  echo "Software Error"
  exit 70
fi

Check Exit Code

./script.sh
echo $?  # Prints the exit code

# Check if exit code matches
if [ $? -eq 70 ]; then
  echo "Software Error"
fi

Node.js/JavaScript

// Exit with code 70
process.exit(70);

// Or throw error that results in exit code
if (error) {
  console.error('Software Error');
  process.exit(70);
}

Python

import sys

# Exit with code 70
if error:
    print("Software Error")
    sys.exit(70)