[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eBadRequestException\u003c/code\u003e is a class that extends \u003ccode\u003eServiceException\u003c/code\u003e and is used to represent a bad request error, which results in a 400 HTTP response.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides multiple constructors to handle various ways of creating an exception, including with a simple message, a cause, or more detailed information like status message, reason, and domain.\u003c/p\u003e\n"],["\u003cp\u003eThere are 7 available constructors of \u003ccode\u003eBadRequestException\u003c/code\u003e detailed in this content, including one which only requires a \u003ccode\u003eThrowable\u003c/code\u003e cause as a parameter.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBadRequestException\u003c/code\u003e inherits standard methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, such as \u003ccode\u003eclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# BadRequestException\n\ncom.google.api.server.spi.response\n\nClass BadRequestException\n-------------------------\n\n- java.lang.Object\n-\n - ServiceException\n -\n - com.google.api.server.spi.response.BadRequestException\n\n-\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public class BadRequestException\n extends ServiceException\n ``` \nBad request exception that is mapped to a 400 response. \n-\n -\n\n ### Constructor Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Summary\n\n -\n\n ### Methods inherited from class java.lang.Object\n\n`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` \n-\n -\n\n ### Constructor Detail\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String message)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.Throwable cause)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String message,\n java.lang.Throwable cause)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String statusMessage,\n java.lang.String reason)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String statusMessage,\n java.lang.String reason,\n java.lang.Throwable cause)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String statusMessage,\n java.lang.String reason,\n java.lang.String domain)\n ```\n\n\n -\n\n #### BadRequestException\n\n ```\n public BadRequestException(java.lang.String statusMessage,\n java.lang.String reason,\n java.lang.String domain,\n java.lang.Throwable cause)\n ```"]]