Global Information Lookup Global Information

Exception chaining information


Exception chaining, or exception wrapping, is an object-oriented programming technique of handling exceptions by re-throwing a caught exception after wrapping it inside a new exception. The original exception is saved as a property (such as cause) of the new exception. The idea is that a method should throw exceptions defined at the same abstraction level as the method itself, but without discarding information from the lower levels.

For example, a method to play a movie file might handle exceptions in reading the file by re-throwing them inside an exception of movie playing. The user interface doesn't need to know whether the error occurred during reading chunk of bytes or calling eof(). It needs only the exception message extracted from cause. The user interface layer will have its own set of exceptions. The one interested in cause can see its stack trace during debugging or in proper log.

Throwing the right kind of exceptions is particularly enforced by checked exceptions in the Java programming language, and starting with language version 1.4 almost all exceptions support chaining.

In runtime engine environments such as Java or .NET there exist tools that attach to the runtime engine and every time that an exception of interest occurs they record debugging information that existed in memory at the time the exception was thrown (stack and heap values). These tools are called Exception Interception and they provide "root-cause" information for exceptions in Java programs that run in production, testing, or development environments.

and 19 Related for: Exception chaining information

Request time (Page generated in 0.9293 seconds.)

Exception chaining

Last Update:

Exception chaining, or exception wrapping, is an object-oriented programming technique of handling exceptions by re-throwing a caught exception after...

Word Count : 269

Java version history

Last Update:

modeled after Perl regular expressions Exception chaining allows an exception to encapsulate original lower-level exception Internet Protocol version 6 (IPv6)...

Word Count : 10638

New York City Subway chaining

Last Update:

chaining is a method to precisely specify locations along the New York City Subway lines. It measures distances from a fixed point, called chaining zero...

Word Count : 3386

Safe navigation operator

Last Update:

programmers can just use usual chaining, but add question mark symbols before dots (or other characters used for chaining). While the safe navigation operator...

Word Count : 1389

Fluent interface

Last Update:

interface is an object-oriented API whose design relies extensively on method chaining. Its goal is to increase code legibility by creating a domain-specific...

Word Count : 2886

Comparison of C Sharp and Java

Last Update:

rather than letting the exceptions propagate to a higher-level exception-handling routine. In some cases, however, exception chaining can be applied instead...

Word Count : 13902

Supply chain management

Last Update:

theories is not the supply chain but rather another system, such as the firm or the supplier-buyer relationship. Among the few exceptions is the relational view...

Word Count : 12374

Command hierarchy

Last Update:

carry out an order is almost always considered insubordination; the only exception usually allowed is if the order itself is illegal (i.e., the person carrying...

Word Count : 993

Hearsay in United States law

Last Update:

federal court proceedings, unless one of nearly thirty exemptions or exceptions applies. The Federal Rules of Evidence define hearsay as: A statement...

Word Count : 4532

Bicycle chain

Last Update:

practice known as cross-chaining, due to chain stress and wear. In the case of single-speed bicycles and hub gears, the chain length must match the distance...

Word Count : 2566

Fair use

Last Update:

right is a general exception that applies to all different kinds of uses with all types of works. In the U.S., fair use right/exception is based on a flexible...

Word Count : 9675

Chain gang

Last Update:

organizations. The SPLC's attorney J. Richard Cohen said, "they realized that chaining them together was inefficient; that it was unsafe". Alabama Prison Commissioner...

Word Count : 1985

List of polygons

Last Update:

e.g. pentagon, dodecagon. The triangle, quadrilateral and nonagon are exceptions, although the regular forms trigon, tetragon, and enneagon are sometimes...

Word Count : 281

Chain of custody

Last Update:

Chain of custody (CoC), in legal contexts, is the chronological documentation or paper trail that records the sequence of custody, control, transfer,...

Word Count : 942

Associative array

Last Update:

widespread approaches to this problem are separate chaining and open addressing. In separate chaining, the array does not store the value itself but stores...

Word Count : 2769

Great chain of being

Last Update:

chain, the more attributes it has, including all the attributes of the beings below it. The minerals are, in the medieval mind, a possible exception to...

Word Count : 2068

Ecological pyramid

Last Update:

a stable population, but also to transfer energy up the pyramid. The exception to this generalization is when portions of a food web are supported by...

Word Count : 1004

Tautomer

Last Update:

Ring–chain tautomers occur when the movement of the proton is accompanied by a change from an open structure to a ring, such as the open chain and cyclic...

Word Count : 1483

Immunoglobulin heavy chain

Last Update:

three distinct Ig heavy chain isotypes have been identified in cartilaginous fish. With the exception of μ, these Ig heavy chain isotypes appear to be unique...

Word Count : 1709

PDF Search Engine © AllGlobal.net