Class Reference
IRIS for UNIX 2019.4
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%OAuth2] >  [Error]
Private  Storage   

serial class %OAuth2.Error extends %SerialObject

Represents an error in OAuth 2.0


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 2


Error ErrorDescription ErrorUri

%%OIDGet %AddToSaveSet %AddToSyncSet %BindExport
%BuildObjectGraph %ClassIsLatestVersion %ClassName %Close
%ConstructClone %Delete %DeleteId %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends %GetParameter
%GetSwizzleObject %IncrementCount %IsA %IsModified
%IsNull %JournalObject %New %NormalizeObject
%ObjectIsNull %ObjectModified %OnBeforeAddToSync %OnDetermineClass
%Open %OpenId %OriginalNamespace %PackageName
%RemoveFromSaveSet %ResolveConcurrencyConflict %SerializeObject %SetModified
%SyncObjectIn %SyncTransport %ValidateObject AsString
LogicalToOdbc OdbcToLogical


• property Error as %String(MAXLEN=1024);
The error type.
• property ErrorDescription as %String(MAXLEN=2048);
The optional long error description.
• property ErrorUri as %String(MAXLEN=1024);
The optional URI for more error detail.


• private method %OnNew(error As %String, desc As %String, uri As %String) as %Status
This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

• method AsString() as %String
Return a string representing this object

Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.