sc::FileOperationFailed(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸŽ€ NAME πŸŽ€

okay bestie, this is the sc::FileOperationFailed page from the MPQC manual β€” section (3), if we're being precise πŸ’…. It's the exception that gets thrown when an operation on a file fails. Periodt. πŸ’–

✨ SYNOPSIS ✨

First things first, you include this:

#include <scexception.h>

And it inherits sc::SystemException. iykyk 🫢

🌸 Public Types

The enum is literally this, no cap:

enum FileOperation { Unknown, OpenR, OpenW, OpenRW, Close, Read, Write,
    Corrupt, Other }

πŸ’– Public Member Functions

This first signature is giving main character energy:

FileOperationFailed (const char *description=0, const char
    *source_file=0, int line=0, const char *filename=0, FileOperation
    operation=Unknown, const ClassDesc *class_desc=0, const char
    *exception_type='FileOperationFailed')  throw ()

Then this other overload shows up:

FileOperationFailed (const FileOperationFailed &)  throw ()

filename() is right here:

const char * filename () const  throw ()

Returns the file name of the file that caused the error, if known. πŸŽ€

And operation() is:

FileOperation operation () const  throw ()

πŸ¦‹ Detailed Description πŸ¦‹

Yep, bestie, same energy: this is thrown when an operation on a file fails. No cap, that's the whole vibe. πŸ’€

🌈 Member Function Documentation 🌈

const char* sc::FileOperationFailed::filename () const [inline]

Returns the file name of the file that caused the error, if known. Otherwise 0 is returned. That's it, that's the tea. πŸ“

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code. Iconic behavior, honestly. ✨


Mwah πŸ’‹ β€” this is MPQC version 2.3.1, dated Sun Oct 4 2020. That's the footer vibe, and we are so done, bestie. Slay. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from