| 27 | }; |
| 28 | |
| 29 | explicit FileException( |
| 30 | Cause cause_, //!< What kind of file operation failed |
| 31 | const wxFileName &fileName_, //!< Which file suffered a failure |
| 32 | const TranslatableString &caption = XO("File Error"), //!< Shown in message box frame, not the main message |
| 33 | const wxFileName &renameTarget_ = {} //!< A second file name, only for renaming failure |
| 34 | ) |
| 35 | // DV: We consider a FileException to be internal for now. |
| 36 | // We used to have some odd cases related to the read-only folder in 3.0.0, |
| 37 | // so it is good to have a full picture here. |
| 38 | // In case we see too many - we will tweak this behavior in the next release. |
| 39 | : MessageBoxException{ ExceptionType::Internal, caption } |
| 40 | , cause{ cause_ }, fileName{ fileName_ }, renameTarget{ renameTarget_ } |
| 41 | {} |
| 42 | |
| 43 | FileException( const FileException &that ) |
| 44 | : MessageBoxException( that ) |
no outgoing calls
no test coverage detected