src/Marando/AstroDate/AstroDate.php
protected function checkDate($status)
    {
        switch ($status) {
            case 3:  // Ignore dubious year
                //throw new Exception('time is after end of day and dubious year');

            case 2:
                throw new Exception('time is after end of day');

            //case 1:   // Ignore dubious year
            //throw new Exception('dubious year');

            case -1:
                throw new Exception('bad year');

            case -2:
                throw new Exception('bad month');

            case -3:
                throw new Exception('bad day');

            case -4:
                throw new Exception('bad hour');

            case -5:
                throw new Exception('bad minute');

            case -6:
                throw new Exception('bad second');

            default:
                return;
        }
    }
protected function checkDate($status)
    {
        switch ($status) {
            case 3:  // Ignore dubious year
                //throw new Exception('time is after end of day and dubious year');

            case 2:
                throw new Exception('time is after end of day');

            //case 1:   // Ignore dubious year
            //throw new Exception('dubious year');

            case -1:
                throw new Exception('bad year');

            case -2:
                throw new Exception('bad month');

            case -3:
                throw new Exception('bad day');

            case -4:
                throw new Exception('bad hour');

            case -5:
                throw new Exception('bad minute');

            case -6:
                throw new Exception('bad second');

            default:
                return;
        }
    }
Throws an exception for a provided IAU date error code

@param  int $status IAU date error

@throws Exception