Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 2 | 0.952 | member_specification |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 40 | File/Exceptions.h |
2 | 8 | 52 | File/Exceptions.h |
3 | 8 | 64 | File/Exceptions.h |
| ||||
public: CouldNotOpenFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) { } virtual ~CouldNotOpenFile() { } virtual void Message() const { // provide error message for exception std::cerr << "Could not open file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl; } |
| ||||
public: CouldNotReadFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) { } virtual ~CouldNotReadFile() { } virtual void Message() const { // provide error message for exception std::cerr << "Could not read file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl; } |
| ||||
public: CouldNotWriteFile(LPCTSTR file_name, DWORD error_code): Exception(file_name,error_code) { } virtual ~CouldNotWriteFile() { } virtual void Message() const { // provide error message for exception std::cerr << "Could not write file \"" << m_file_name << "\". Error code: " << m_error_code << "." << std::endl; } |
| |||
public: [[#variablea93aae0]](LPCTSTR file_name, DWORD error_code) : Exception(file_name, error_code) { } virtual ~[[#variablea93aae0]]() { } virtual void Message() const { // provide error message for exception std::cerr << [[#variablea93ab60]] << m_file_name << "\". Error code: " << m_error_code << "." << std::endl; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a93aae0]] | CouldNotWriteFile |
1 | 2 | [[#a93aae0]] | CouldNotReadFile |
1 | 3 | [[#a93aae0]] | CouldNotOpenFile |
2 | 1 | [[#a93ab60]] | "Could not write file \"" |
2 | 2 | [[#a93ab60]] | "Could not read file \"" |
2 | 3 | [[#a93ab60]] | "Could not open file \"" |