Skip to main content

undefined behavior

Undefined behavior results when programs attempt to do things for which the standard defines no semantics, and requires no diagnostic either. Examples include dereferencing invalid pointers and dividing by zero. Executing such programs may cause them to produce incorrect results, crash, silently "work", or even format the hard drive.
It is commonly joked that undefined behavior allows the compiler to insert code that will start a game of nethack.
undefined behavior mug front
Get the undefined behavior mug.
See more merch

Undefined behaviour exception 

Eine Undefined Behaviour Exception ist eine Exception, die bei Undefined Behaviour geworfen wird. Geschichtlich stammt die Undefined Behaviour Exception aus der Programmiersprache Sonix, die bei Stenya von einem sehr kompetenten Entwicklerteam geskidded wird. Manche Verschwörungsideologen behaupten, dass diese Art von Exception keinen Sinn macht.
Hast du schon etwas in der neuen Sprache geschrieben, die bei Stenya entwickelt wird? Ja, aber irgendwie bekomme ich eine Undefined Behaviour Exception. Oh neyyn, oh neyyyn, das kann doch gar nicht seyyyn. Süüü

UndefinedBehaviorException 

The UndefinedBehaviorException is a type of exceptions that gets thrown when undefined behavior is detected.

It has been engineered by the Stenya Development group, which has been favourite for their languages for a long time now.
Cedric: Oh noo, my program keeps crashing all the time. Can you help me, Marlon?
Marlon: Mhmm, I don't know to be honest. Have you tried to catch an UndefinedBehaviorException?
Cedric: Mensch, dat kann doch nit sayyynn, das hats behoben!