Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make exception messages more consistent. #3205

Merged
merged 1 commit into from
Oct 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions include/deal.II/base/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ namespace deal_II_exceptions
Exception (const std::string &msg = defaulttext) : arg (msg) {} \
virtual ~Exception () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out << arg << std::endl; \
out << " " << arg << std::endl; \
} \
private: \
const std::string arg; \
Expand All @@ -411,7 +411,7 @@ namespace deal_II_exceptions
Exception1 (const type1 a1) : arg1 (a1) {} \
virtual ~Exception1 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
out << " " outsequence << std::endl; \
} \
private: \
const type1 arg1; \
Expand All @@ -431,7 +431,7 @@ namespace deal_II_exceptions
arg1 (a1), arg2(a2) {} \
virtual ~Exception2 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
out << " " outsequence << std::endl; \
} \
private: \
const type1 arg1; \
Expand All @@ -452,7 +452,7 @@ namespace deal_II_exceptions
arg1 (a1), arg2(a2), arg3(a3) {} \
virtual ~Exception3 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
out << " " outsequence << std::endl; \
} \
private: \
const type1 arg1; \
Expand All @@ -475,7 +475,7 @@ namespace deal_II_exceptions
arg1 (a1), arg2(a2), arg3(a3), arg4(a4) {} \
virtual ~Exception4 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
out << " " outsequence << std::endl; \
} \
private: \
const type1 arg1; \
Expand All @@ -499,7 +499,7 @@ namespace deal_II_exceptions
arg1 (a1), arg2(a2), arg3(a3), arg4(a4), arg5(a5) {} \
virtual ~Exception5 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
out << " " outsequence << std::endl; \
} \
private: \
const type1 arg1; \
Expand Down
4 changes: 2 additions & 2 deletions source/base/exceptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ void ExceptionBase::print_exc_data (std::ostream &out) const
<< " " << exc << std::endl;

// finally print the additional information the exception provides:
out << "Additional Information: " << std::endl;
out << "Additional information: " << std::endl;
}



void ExceptionBase::print_info (std::ostream &out) const
{
out << "(none)" << std::endl;
out << " (none)" << std::endl;
}


Expand Down