bfsi_account_and_transaction_api.interceptor
Modules
bfsi_account_and_transaction_api.interceptor
bfsi_account_and_transaction_api.modelbfsi_account_and_transaction_api.utilbfsi_account_and_transaction_api.validatorModule bfsi_account_and_transaction_api.interceptor
wso2bfsi/bfsi_account_and_transaction_api.interceptor
Functions
constructDefaultErrorResponse
function constructDefaultErrorResponse(error err) returns BadRequest
Returns a default error response.
Parameters
- err error - The error to be processed
Return Type
- BadRequest - The default error response
Classes
bfsi_account_and_transaction_api.interceptor: RequestErrorInterceptor
The RequestErrorInterceptor
service class implementation.
Allows intercepting the error that occurred in the request path and handle it accordingly.
'default [string... path]
function 'default [string... path](error err) returns BadRequest
Parameters
- err error -
bfsi_account_and_transaction_api.interceptor: RequestInterceptor
Request interceptor to pre-process every API interaction.
'default [string... path]
function 'default [string... path](RequestContext ctx, string? x\-fapi\-customer\-ip\-address, string? x\-fapi\-interaction\-id) returns anydata|Response|StatusCodeResponse|NextService|error?
Parameters
- ctx RequestContext -
- x\-fapi\-customer\-ip\-address string? -
- x\-fapi\-interaction\-id string? -
bfsi_account_and_transaction_api.interceptor: ResponseErrorInterceptor
ResponseErrorInterceptor
intercepts the response and process the errors before it is dispatched to the client.
interceptResponseError
function interceptResponseError(error err) returns BadRequest
Parameters
- err error -
Import
import wso2bfsi/bfsi_account_and_transaction_api.interceptor;
Metadata
Released date: over 1 year ago
Version: 1.0.0
Compatibility
Platform: any
Ballerina version: 2201.3.1
GraalVM compatible: Yes
Pull count
Total: 59
Current verison: 59
Weekly downloads
Keywords
Type/RestApi
Category/Service
Internal/http
Cost/Free
Vertical/bfsi
Contributors
Other versions
1.0.0