File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * This Source Code Form is subject to the terms of the Mozilla Public
3+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5+ *
6+ * Copyright © Vincent Bengtsson & Contributors 2022-2024
7+ * https://github.com/Visual-Vincent/GuiStack
8+ */
9+
10+ using System ;
11+
12+ namespace GuiStack . Models
13+ {
14+ public class ErrorPageModel
15+ {
16+ public string Title { get ; set ; }
17+ public string Message { get ; set ; }
18+
19+ public ErrorPageModel ( )
20+ {
21+ }
22+
23+ public ErrorPageModel ( string message )
24+ {
25+ Message = message ;
26+ }
27+
28+ public ErrorPageModel ( string title , string message )
29+ {
30+ Title = title ;
31+ Message = message ;
32+ }
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ @*
2+ * This Source Code Form is subject to the terms of the Mozilla Public
3+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5+ *
6+ * Copyright © Vincent Bengtsson & Contributors 2022-2024
7+ * https://github.com/Visual-Vincent/GuiStack
8+ *@
9+
10+ @using GuiStack .Models ;
11+ @model ErrorPageModel
12+
13+ <div class =" error-container" >
14+ <h2 class =" error-text" >@( ! string .IsNullOrWhiteSpace (Model .Title ) ? Model .Title : " An error occurred:" ) </h2 >
15+ <p class =" error-text" >@Model.Message </p >
16+ </div >
You can’t perform that action at this time.
0 commit comments