Skip to content
Repl.it error messages?
Profile icon
hacker
has Hacker Plan
DynamicSquid

Is there a way that I can get a list of error messages for repl.it? Specifically the Python and C++ errors. For example a C++ error would be this:

Screenshot (86)

I'm asking this since I'm making a project that tries to replicate an error message.

So is there a like a way I could get the different types of errors? Or do I have to just do it manually by putting errors in my code and seeing the result?

You are viewing a single comment. View All
Profile icon
CodeLongAndPros

You can look at GCC/Clang source code, for those.

Python has an exception class and a defined format for stack traces.

For SegFaults, just send a SEGV signal.

Now that this is the answer, let me be clear:

Looking through the GCC code for error messages is not easy!

Thank you.

Profile icon
DynamicSquid

@CodeLongAndPros
where can I find it?

Profile icon
CodeLongAndPros
Profile icon
DynamicSquid

@CodeLongAndPros
oh yeah, don't worry. but the Python thing helped me out a lot

Profile icon
CodeLongAndPros