Class: ConverterError

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


ConverterError

Version:
  • 7.1.0
Since:
  • 0.6
Module:
  • ojvalidation-base

Module usage

See JET Module Loading for an overview of module usage within JET.

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-base";

//To access this type in your code,
class MyClass implements ConverterError{
//or,
let myVariable: ConverterError;

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

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

Methods

getMessage() → {oj.Message}

Returns an Object that duck-types oj.Message which is an Object with summary, detail, and severity properties.
Returns:
an Object that duck-types oj.Message which is an Object with summary, detail, and severity properties.
Type
oj.Message