• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geo-engine / BioIS / 22622622086

03 Mar 2026 12:17PM UTC coverage: 81.386%. First build
22622622086

Pull #5

github

web-flow
Merge fade72e27 into e73044057
Pull Request #5: feat: UI

151 of 227 branches covered (66.52%)

Branch coverage included in aggregate %.

384 of 535 new or added lines in 21 files covered. (71.78%)

1528 of 1836 relevant lines covered (83.22%)

1.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

48.0
/frontend/src/app/error.ts
1
import { ApiException } from '@geoengine/biois';
2

3
/**
4
 * Error based on [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457.html)
5
 */
6
export class BackendError {
1✔
7
  readonly type: string;
8
  readonly status?: number;
9
  readonly title?: string;
10
  readonly detail?: string;
11

12
  constructor(type: string, status?: number, title?: string, detail?: string) {
13
    this.type = type;
1✔
14
    this.status = status;
1✔
15
    this.title = title;
1✔
16
    this.detail = detail;
1✔
17
  }
18

19
  static fromError(error: unknown): BackendError {
20
    if (error instanceof BackendError) {
1!
NEW
21
      return error;
×
22
    }
23

24
    if (error instanceof ApiException) {
1!
NEW
25
      const body = error.body as {
×
26
        type: string;
27
        status?: number;
28
        title?: string;
29
        detail?: string;
30
      }; // TODO: Use proper type checking here
NEW
31
      return new BackendError(body.type, body.status, body.title, body.detail);
×
32
    }
33

34
    if (error instanceof Error) {
1!
35
      return new BackendError(error.name, undefined, error.message, error.stack);
1✔
36
    }
37

NEW
38
    if (typeof error === 'object' && error !== null) {
×
NEW
39
      return new BackendError('Error', undefined, undefined, JSON.stringify(error));
×
40
    }
41

NEW
42
    return new BackendError('Error', undefined, undefined, String(error));
×
43
  }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc