Logical ErrorsLogical errors such as failing to check if a file is empty before parsing its first line.
Invalid OperationsTrying to do things that can't be done such as division by zero.
Input HandlingFailing to properly validate user input and then making incorrect assumptions about that data. For example, assuming that users haven't put any non-numeric characters into a "quantity" field such that code fails when it tries use this data as a number.
ParsingErrors related to understanding text such as scanning for "jpg" anywhere in a filename to determine a file type. This might cause a runtime error for a filename such as "jpg at the lake.mov."
Out of BoundsLooking for things in data structures using impossible addresses. For example, trying to access position -1 in a list where positions start at 0. metadata such that it generates an error if this field is empty.null pointer error. For example, assuming that all customers in a database have a phone number set when some do not.
ResourcesCode that eats up too many resources such as an infinite loop or code that is unable to secure resources it assumes will be present such as enough memory to process a large media file.
I/OErrors in input and output. For example, an failed call to create a local file due to file permissions.
SynchronizationProblems that occur with multiple processes accessing the same resource at the same time. For example, multiple threads of code that try to change the same data at the same time without properly synchronizing these updates.
NotesRuntime errors can be difficult to fix because they may impact a small number of users and be difficult to recreate. For example, a social media script that works fine on a high speed, low latency connection where the developer is sitting that starts generating runtime errors in areas where internet is slow and unreliable.
SummaryRuntime error are errors in running software. These can be difficult to detect whereby they are triggered by different combinations of user actions, data, sequences of events and operational conditions.
|Overview: Runtime Error|
An error that occurs while software is executing.