Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
48 views

I have wrote this validators.py file: from django.core.exceptions import ValidationError import os def allow_only_images_validator(value): ext = os.path.splitext(value.name)[1] print(ext) ...
ADAN SHAHID's user avatar
0 votes
1 answer
47 views

I used test token to chose what type of card I want. Got the token name from stripe-docs. import com.stripe.Stripe; import com.stripe.exception.StripeException; import com.stripe.model.Card; import ...
Marius Carchilan's user avatar
1 vote
0 answers
209 views

So, I just would like to know your opinions on how I'm currently handling errors on my application. First, here's my src/errors/index.ts: interface BaseErrorProperties { name?: string; message: ...
tintin's user avatar
  • 11
0 votes
1 answer
40 views

I have a serializer: class CompanyProfileCreateSerializer(serializers.ModelSerializer): class Meta: model = CompanyProfile exclude = ["id", "company"] class ...
Ashutosh Chapagain's user avatar
0 votes
0 answers
152 views

everyone. I am new to Swift, and trying to handle custom errors in my project. Unfortunately, during errors I always encounter print("DEBUG: Unknown error occurred: ..."). For example, if ...
Vladyslav's user avatar
1 vote
2 answers
880 views

I have a contract that calls another contract using a try-catch, which reverts with a custom error. I am decoding the error reason bytes using abi.decode, but it is reverting when I try to decode. ...
jjordan's user avatar
  • 11
1 vote
1 answer
1k views

I'm using NestJS with class-validator to validate incoming requests. In my SignUpDto class, I have applied validation decorators like IsNotEmpty, IsString, and IsEmail to validate the email and ...
Muhammad Umer's user avatar
0 votes
1 answer
307 views

After downloading the intended report out of Cognos, in Excel I use the following formula as a column to inform if the VIN is built or unbuilt. The formula I use in excel: When I inputted this as a ...
Rifi J's user avatar
  • 11
1 vote
0 answers
1k views

I'm trying to avoid return this kind of error to the client when the Spring fails to convert a date using @DateTimeFormat Failed to convert property value of type 'java.lang.String' to required type '...
Alexis's user avatar
  • 1,862
0 votes
1 answer
2k views

How can i create a custom error message for a custom validation. I'm using codeIgniter4 Okay guys so I'm a bit of a newbie with CI4 and I have created a custom validation file using the spark command ...
Caasi's user avatar
  • 3
2 votes
2 answers
7k views

as you know the default error interface in Fastify looks like { "statusCode": 400, "error": "Bad Request", "message": "Missing property blah-...
tonkatata's user avatar
  • 527
0 votes
2 answers
400 views

I want to be able to "make" browser display errors, like forbidden, 503 etc... Is there some kind of sandbox where I could do this? I need the errors to be rendered in google chrome, then ...
Bruno  Vincent's user avatar
0 votes
1 answer
2k views

This (in ASP.NET Core 3.1) is how my property looks like in the class: [BindProperty] [Required(ErrorMessage = "Enter the valid amount")] [ValidDecimal(ErrorMessage = "Enter the amount ...
user3232760's user avatar
0 votes
1 answer
269 views

I've got stuck with the problem of counting amount of isolated vertices in the graph. Below you will see the code #include <iostream> #include <vector> #define V 4 // amount of vertices in ...
Venom ___Manny's user avatar
2 votes
1 answer
344 views

Link: https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-exceptions#prior-versions-support If the CustomErrors configuration is Off, then exceptions will be available for the HTTP ...
variable's user avatar
  • 9,886
1 vote
2 answers
681 views

When you validate user input like so : $request->validate([ 'ref' => 'required', 'name' => 'required' ]); You can customize the error message for the field : $request->validate([ ...
Hooman Limouee's user avatar
1 vote
1 answer
396 views

I'm trying to use the Laravel validator to include some custom error messages before I run the validate() method. However it appears that running this method then removed any previously added errors. ...
lky's user avatar
  • 1,139
1 vote
0 answers
2k views

I'm trying to redirect if authentication fails to a custom 403 page which Is not working. The web pages should only be accessible if the user is authenticated via LDAP(should belong to a particular ...
melspring's user avatar
  • 141
-1 votes
2 answers
151 views

I'm trying to create a centralized error handler. I'm using vbObjectError as recommended. But i can't figure out how to compose a conditional which can determine if my error is native or custom. The ...
johny why's user avatar
  • 2,270
6 votes
3 answers
2k views

This page says: "If you are generating errors, then you should add your number to the vbObjectError constant. Eg Err.Raise Number = vbObjectError + 1000. The range 513 - 65535 is available for ...
johny why's user avatar
  • 2,270
0 votes
1 answer
1k views

I have an Angular application hosted on IIS. In my application there is a custom 404 error page for incorrect urls. However, whenever a js file is requested from the url https://mywebsite.com/assets/...
Ali Nm's user avatar
  • 27
1 vote
3 answers
3k views

I have a simple input, I would like to get the type of error at submit. formGroup: FormGroup = this.fb.group({ password: [ '', [Validators.required, Validators.minLength(8), ...
Luca's user avatar
  • 358
0 votes
0 answers
624 views

HTTP Error 413.1 - Request Entity Too Large The page was not displayed because the request entity is too large This is a webforms app, and I have these set in web.config: <security> <...
Kershaw's user avatar
  • 1,284
0 votes
1 answer
27 views

I want to ask you guys is this good to handle errors globally or better way is to handle them with try catch blocks. Here are 2 different ways you can handle errors: Global handler public class ...
Mr Raven's user avatar
0 votes
2 answers
744 views

I try to redirect users that have no autorization for different pages from my app to a custom error page: CustomErr/Forbidden_403 - controller(that have a razorview). I've also configured <...
sTx's user avatar
  • 1,295
0 votes
1 answer
1k views

We have 2 servers, In server1, IIS configuration has a virtual directory which has the HTML page of the URL. In server2, IIS configuration the virtual directory points to the directory in server1(same ...
Maria's user avatar
  • 315
1 vote
0 answers
448 views

EDIT So I managed to fix it by defining an Application_Error method in my Global.asax and call Response.ClearContent from there. Not sure if this could have any undesirable side-effects though, so ...
user3700562's user avatar
0 votes
0 answers
194 views

I'm writing a little program in C#, and in that program i have a base error class that inherits from the System.Exception class. Which looks as follows // Simple Error class, used for inheriting to ...
K. Hansson's user avatar
1 vote
1 answer
660 views

I use IIS 10 on windows 10, I was use to have web.config files with customErrors, but now it is not accepting it anymore. I been procrastinating hotfixing just removing the line from the webconfig, ...
Norcino's user avatar
  • 6,665
0 votes
0 answers
319 views

I'm new to Laravel. I'm trying to create an API post request. This is the validation I have. $request->validate([ 'name' => 'required', 'phone' => 'required', '...
Kimhor Mong's user avatar
-1 votes
2 answers
1k views

class CustomError(TypeError): def __init__(self,message,code): super().__init__(f'ErrorCode:{code}. {message}') raise CustomError("This is a sample error message!",500) Okay, so I have just ...
Physiker's user avatar
  • 113
0 votes
0 answers
112 views

Hi i use alert to flash a message when a gossip was created or not. Here is my controller : class GossipsController < ApplicationController def index @gossips = Gossip.all end def show ...
ffouquet42's user avatar
0 votes
1 answer
447 views

For IE reasons I need to build a custom Error, however, as best as I can do it, the error has to be checked with the constructor. customError instanceof CustomError; // false customError.constructor =...
user2167582's user avatar
  • 6,458
13 votes
3 answers
2k views

I'm trying to spread an Error so that I can alter the error without affecting the original error. const error = new Error('Error test'); const freeError = {...error}; console.log(error, ...
SnekNOTSnake's user avatar
  • 1,407
0 votes
1 answer
293 views

When I am getting any exception in my sequence or when I am calling any endpoint which gives me some exception, I want to set custom error messages and error codes in the exception output. I want to ...
vipin's user avatar
  • 21
1 vote
1 answer
2k views

I'm programming ASP.Net MVC 5 in VS2015. My website runs with no error from visual studio but after publishing (IIS 8.5, Windows Server 2012), this error displays. Of course, I would point out that ...
Rashid Bagheri's user avatar
0 votes
0 answers
336 views

I want to create my own error class that extends the base JS Error class and has mutliple getters defined. example: class CustomError extends Error { public get code(): string { return "my-...
a72f831a's user avatar
0 votes
1 answer
1k views

I read about a lot of ideas about how to test the ErrorDocument 500 directive, but they don't work. If I put bad php code, I still get a page with my php error in it. If I create a bad htaccess file, ...
MusicAndCode's user avatar
0 votes
1 answer
81 views

I created a 404.html page and set it in Error Documents. It works well for everything except aspx pages. How can I redirect those pages also? Thanks
MusicAndCode's user avatar
1 vote
2 answers
9k views

my web.config : <customErrors mode="Off" redirectMode="ResponseRewrite" defaultRedirect="~/Pages/Error/DefaultError.aspx"> <error statusCode="404" redirect="~/Pages/Error/Page404.aspx"...
eagle's user avatar
  • 461
1 vote
0 answers
1k views

I tryed to do an error handling system in Angular but there is something that doesn't work and i don't get why. When the instance of BadRequest is returned to the component, the component doesn't ...
Ishiru's user avatar
  • 147
1 vote
1 answer
213 views

Open-uri and nokogiri are slow to scrape the site I want hence the Net::OpenTimeout execution expired error. I attempted to code a custom error with rescue however I do not know what condition I can ...
rTaylor's user avatar
  • 39
1 vote
1 answer
2k views

I have a custom PHP Stripe code for donations. I am having issues with catching declined cards or a general error (such as when a user tries to load the card-processing PHP page, which should ...
Luis M's user avatar
  • 104
3 votes
1 answer
1k views

I want to custom error message in AOP around annotations. I used to use @RestControllerAdvice before but It didn't work in AOP around method. it outputs default error message. I tried to input ...
Joonseo Lee's user avatar
0 votes
1 answer
655 views

I have a ASP.Net Core Application that is working fine in development but it is failing when deployed at the target. I believe I know what the error is, however, I'm finding it very difficult to ...
Dev X's user avatar
  • 119
0 votes
1 answer
2k views

I am using ActiveForm of yii2 and I want to customize the validation errors. I want to display errors on tooltip. This is my form <?= $form = ActiveForm::begin(['id' => 'login-form','method'=...
php guy's user avatar
  • 123
4 votes
2 answers
6k views

I have two files, one is api.js and other one is handler.js. For schema handling I am using celebrate module @hapi/joi On api.js I wrote only the API name On handler.js I wrote the API functionality. ...
Aks's user avatar
  • 1,236
0 votes
0 answers
50 views

Foremost, I am in a strict unique environment where VS cannot be installed on the network (On server, or workstation), so I cannot debug locally or remotely via VS. I am trying to move this website ...
Jonathon Chiu's user avatar
0 votes
2 answers
451 views

I have custom validation rule appointment_status. I am performing various test cases on it and decide what error message is best and throwback. it will be different for every case. I want the $...
Amit Shah's user avatar
  • 8,209
0 votes
1 answer
965 views

I want to show the Custom Errors in error.aspx page when any error occur. Its redirecting to error.aspx when error happens. But not showing the message. I set web.config like <customErrors mode="...
Vahid's user avatar
  • 119

1
2 3 4 5
7