Namespace: Consultingwerk.Framework.Http
Class 
Http401Exception Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Framework.Http.HttpClientException
Implements: Consultingwerk.Exceptions.ISupportsInnerException, Consultingwerk.Exceptions.ISupportsOriginalStackTrace, IProvidesSessionInfo
SERIALIZABLE

File:Http401Exception
Purpose:Exception class for errors that are type http401 (Unauthorized)
Description:401 Unauthorized (RFC 7235)
Similar to 403 Forbidden, but specifically for use when
authentication is required and has failed or has not yet
been provided. The response must include a WWW-Authenticate
header field containing a challenge applicable to the
requested resource. See Basic access authentication and
Digest access authentication. 401 semantically means
"unauthenticated", i.e. the user does not have the necessary
credentials.
Some sites issue HTTP 401 when an IP address is banned from
the website (usually the website domain) and that specific
address is refused permission to access a website.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Jul 28 18:16:40 CEST 2017
File:HttpException.i
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat May 11 02:39:39 CEST 2019
Purpose: Constructor of the HttpException class
Notes:



Top Method Summary
Options Name Purpose
+ Exception AddMessagesFrom (Error) Adds error messages from another error to this Exception instance
Inherited from Consultingwerk.Exceptions.Exception
+ Exception AssignFromError (Error) Adds the messages and the original stack trace of the provided
Inherited from Consultingwerk.Exceptions.Exception
+ Exception FromErrorMessageAndError (character, integer, Error) Creates an Exception using the given error message and number and Existing Error
Inherited from Consultingwerk.Exceptions.Exception

Top Constructor Summary
Options Name Purpose
+ Http401Exception (IHttpRequest, IHttpResponse) Constructor of the HttpException class
+ Http401Exception (IHttpResponse) Constructor of the HttpException class

Top Property Summary
Options Name Purpose
+ Error InnerException
Inherited from Consultingwerk.Exceptions.Exception
+ CHARACTER OriginalStackTrace
Inherited from Consultingwerk.Exceptions.Exception
+ OpenEdge.Net.HTTP.IHttpRequest Request
Inherited from Consultingwerk.Framework.Http.HttpException
+ OpenEdge.Net.HTTP.IHttpResponse Response
Inherited from Consultingwerk.Framework.Http.HttpException
+ SessionInfo SessionInfo
Inherited from Consultingwerk.Exceptions.Exception


Method Detail
Top

PUBLIC Exception AddMessagesFrom (Error)

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Adds error messages from another error to this Exception instance
Notes:

Parameters:
poError Error
The error instance to add errors from
Returns Exception
The reference to the error (to be used in a throw statement)
Top

PUBLIC Exception AssignFromError (Error)

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Adds the messages and the original stack trace of the provided
Notes:

Parameters:
poError Progress.Lang.Error
The original error
Returns Exception
The reference to the error (to be used in a throw statement)
Top

PUBLIC Exception FromErrorMessageAndError (character, integer, Error)

Inherited from Consultingwerk.Exceptions.Exception
Purpose: Creates an Exception using the given error message and number and
Existing Error
Notes: The messages from the existing error will be added to the new error
are well, useful for adding messages to ABL runtime errors

Parameters:
pcErrorString CHARACTER
The error message associated with this Exception object
piMessageNumber INTEGER
The error message number associated with this Exception object
poError Error
The reference to the original error
Returns Exception
The reference to the new Exception


Constructor Detail
Top

PUBLIC Http401Exception (IHttpRequest, IHttpResponse)

Purpose: Constructor of the HttpException class
Notes:

Parameters:
poRequest OpenEdge.Net.HTTP.IHttpRequest
The HTTP Request associated with this exception
poResponse OpenEdge.Net.HTTP.IHttpResponse
The HTTP Response associated with this exception
Top

PUBLIC Http401Exception (IHttpResponse)

Purpose: Constructor of the HttpException class
Notes:

Parameters:
poResponse OpenEdge.Net.HTTP.IHttpResponse
The HTTP Response associated with this exception


Property Detail
Top

PUBLIC Error InnerException

Inherited from Consultingwerk.Exceptions.Exception

Returns Error
Top

PUBLIC CHARACTER OriginalStackTrace

Inherited from Consultingwerk.Exceptions.Exception

Returns CHARACTER
Top

PUBLIC OpenEdge.Net.HTTP.IHttpRequest Request

Inherited from Consultingwerk.Framework.Http.HttpException

Returns OpenEdge.Net.HTTP.IHttpRequest
Top

PUBLIC OpenEdge.Net.HTTP.IHttpResponse Response

Inherited from Consultingwerk.Framework.Http.HttpException

Returns OpenEdge.Net.HTTP.IHttpResponse
Top

PUBLIC SessionInfo SessionInfo

Inherited from Consultingwerk.Exceptions.Exception

Returns SessionInfo


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:58:55