Usage
Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {ConverterError} from "ojs/ojvalidation-error";
//To access this type in your code,
class MyClass implements ConverterError{
//or,
let myVariable: ConverterError;
For additional information visit:
Final classes in JET
Classes in JET are generally final and do not support subclassing. At the moment, final is not enforced. However, this will likely change in an upcoming JET release.
Constructor
new ConverterError(summary, detail)
Constructs a ConverterError instance from a summary and detail
Parameters:
Name | Type | Description |
---|---|---|
summary |
string | a localized String that provides a summary of the error |
detail |
string | a localized String that provides a detail of the error |