comparison Framework/Oracle/OracleCommandWithPayload.cpp @ 956:a7351ad54960

Made IsContextLost automatically set the flag by checking with the emscripten WebGL wrapper + added a LOT of logging messages right before throwing ErrorCode_BadSequenceOfCalls exceptions + increased the http request timeouts from 60 to 600 sec (big datasets in some recent customer use cases) + added IsContext lost through the Viewport/Context layer (to make it reachable from external API) + the same for the underlying device context (for debug)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 21 Aug 2019 16:16:30 +0200
parents d3197e0e321d
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
953:118fc5c85d07 956:a7351ad54960
44 { 44 {
45 return *payload_; 45 return *payload_;
46 } 46 }
47 else 47 else
48 { 48 {
49 LOG(ERROR) << "OracleCommandWithPayload::GetPayload(): (!HasPayload())";
49 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); 50 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
50 } 51 }
51 } 52 }
52 53
53 54
57 { 58 {
58 return payload_.release(); 59 return payload_.release();
59 } 60 }
60 else 61 else
61 { 62 {
63 LOG(ERROR) << "OracleCommandWithPayload::ReleasePayload(): (!HasPayload())";
62 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); 64 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls);
63 } 65 }
64 } 66 }
65 } 67 }