Created
November 30, 2015 09:39
-
-
Save Bigpet/af592d40aadbbac62c43 to your computer and use it in GitHub Desktop.
cpp exception question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::stringstream errorMessage; | |
errorMessage << "out of range access" | |
<< "tried to access " << x << ", " << y << ", " << z << ", " << w | |
<< std::endl << "but image dimensions are: " << width_ << ", " << height_ << ", " << depth_ << ", " << spektrum_ | |
<< std::endl; | |
throw std::out_of_range(errorMessage.str()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment