concept custom object in category .net

This is an excerpt from Manning's book ASP.NET AJAX in Action.
You can create custom exception types using the Error.create method. This method accepts two arguments: a string with the name of the exception type that the custom error represents, and a custom object whose properties are added to the Error object returned by Error.create. As a general rule, the custom object should contain at least a name property with the name of the exception type. Listing 2.9 shows an example of a custom error type created with the Microsoft Ajax Library.
As you’ll discover in section 3.1.4, the new operator is useful when you want to create custom objects using a function as a constructor. In the previous statement, the new operator is syntactic sugar, because an object is usually created with an object literal, like so:
In section 3.1, you saw how JavaScript objects can be created as dictionaries with name and value pairs. Each pair represents a property of the object and the value of the property. This approach may be less comfortable for developers acquainted with the mechanisms of class-based object-oriented languages. In such languages, you typically specify the structure of an object in a class, and then you create instances of the class using the new operator. If you want to use a similar approach in JavaScript, it’s possible to define a function and use it in conjunction with the new operator to create custom objects. In this case, the function is called the constructor, and it’s used to define the properties of the new object. Following this approach, listing 3.2 shows how to declare the constructor for a Cat object.