5
CHAPTER 5

Error Handling & Validation

Missing or improper error handling and input validation mechanisms
[1 examples]

Incorrect MIME type

Resource served with wrong MIME type.

configurationfrontendbrowser
[1 examples]

Missing alt text

Image lacks alternative text.

frontendaccessibilitycode quality
[1 examples]

Incorrect permissions

User has unintended access to resources.

securityconfiguration
[12 examples]

Unhandled exception

Exception occurs without proper handling.

error handlingdebugging
[1 examples]

Incorrect exception handling

Exceptions improperly managed or caught.

error handlingdebugging
[13 examples]

Incorrect file path

Incorrect location specified for file access.

configurationfrontend
[25 examples]

Logic inversion

Logical conditions mistakenly reversed.

logiccontrol flow
[10 examples]

Missing default case

Switch statement lacks a fallback case.

control flowlogic
[34 examples]

Missing dependency

Required component or library not included.

configurationtypescript
[162 examples]

Missing error handling

Errors occur without appropriate management.

error handlingcode quality
[40 examples]

Missing null check

Failure to verify if a value is null before use.

error handlingundefined behavior
[1 examples]

Missing test coverage

Code paths lacking sufficient tests.

code qualitytesting
[111 examples]

Syntax error

Code written incorrectly, violating language rules.

code qualitytypescriptpython
[1 examples]

Implicit type coercion

Automatic type conversion leads to unexpected behavior.

type systemjavascript
[1 examples]

Invalid enum value

Enum assigned an invalid or unexpected value.

type systemtypescript
[2 examples]

Incorrect timestamp

Incorrect or improperly formatted time data.

data integrityconfiguration