~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/src/Image/JPEG2000/JP2ImageXMLBox.php

  • Committer: Keith Hughitt
  • Date: 2010-08-25 18:39:52 UTC
  • mto: This revision was merged to the branch mainline in revision 525.
  • Revision ID: hughitt1@kore-20100825183952-vc2bjsw80kmh1h5v
Dynamo error-handling overhauled: Individual log files created for each error incident (except in the cases of expected errors). Run-time errors all return JSON "error" field. Both high-level and low-level description of movie related errors included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    {
50
50
        if (!file_exists($this->_file)) {
51
51
            $msg = "Unable to extract XMLbox for {$this->_file}. File does not exist!";
52
 
            logErrorMsg($msg, true);
53
 
            throw new Exception("Unable to find file: {$this->_file}.");
 
52
            throw new Exception($msg);
54
53
        }
55
54
 
56
55
        $fp = fopen($this->_file, "rb");