Ignore:
Timestamp:
01/09/13 16:16:40 (12 years ago)
Author:
neise
Message:
added exception handling if user submits unknown 'task' value to Observation cosntructor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Observation_class.js

    r14765 r14768  
    7474                    "if 'task' == 'ratescan'");
    7575            }
     76            break;
     77        default:
     78            throw new Error(" the task of this observation:"+this.task+
     79                            "is not implemented. use one of: DATA, STARTUP, SHUTDOWN, RATESCAN.");
    7680    }
    7781   
Note: See TracChangeset for help on using the changeset viewer.