JavaScript Error Handling

JavaScript Error Handling – SyntaxError: “x” is not a legal ECMA-262 octal constant

Continuing right along through our JavaScript Error Handling series, today we’ll be taking a closer look at the Invalid Octal Constant warning. The Invalid Octal Constant warning is quite unique in the realm of all the JavaScript errors we’ve explored thus far, because it only appears in two very specific instances: when defining an octal literal value of 08 or 09…. continue reading →

JavaScript Error Handling

JavaScript Error Handling: SyntaxError: “use strict” not allowed in function with non-simple parameters

Delving deeper into the misty (and mysterious) mountains of JavaScript Error Handling, we’ve come upon the frightening and dangerous lair of the beast known as the Invalid Strict with Complex Parameters error! [INSERT TERRIFIED SCREAMS]. The Invalid Strict with Complex Parameters error rears its ugly head anytime strict mode is enabled within a function that contains any… continue reading →

Ruby Exception Handling

Ruby Exception Handling: InvalidByteSequenceError

Moving right along through our in-depth Ruby Exception Handling series, today we’re going to examine the InvalidByteSequenceError. An InvalidByteSequenceError is raised when utilizing Ruby’s internal Encoding or Stringmethods to transcode a string that contains an invalid byte for the particular encoding converters being utilized. Throughout this article we’ll examine the InvalidByteSequenceError class, look at where it sits within Ruby’s Exception class hierarchy, and also… continue reading →

Ruby Exception Handling

Ruby Exception Handling: CompatibilityError

As we continue to make our way through the expansive Ruby Exception Handling series, today we’ll be taking a closer look at the CompatibilityError. CompatibilityErrors appear when dealing with encoding in Ruby, and specifically when attempts are made to compare two encoded values which have incompatible encoding types. Throughout this article we’ll delve into the… continue reading →